========== build_allmodconfig_warn - FAILED ../drivers/net/dsa/an8855.c: In function ‘an8855_switch_probe’: ../drivers/net/dsa/an8855.c:2227:34: error: invalid use of undefined type ‘struct platform_device’ 2227 | priv = devm_kzalloc(&pdev->dev, sizeof(*priv), GFP_KERNEL); | ^~ ../drivers/net/dsa/an8855.c:2231:26: error: invalid use of undefined type ‘struct platform_device’ 2231 | priv->dev = &pdev->dev; | ^~ ../drivers/net/dsa/an8855.c: In function ‘an8855_switch_remove’: ../drivers/net/dsa/an8855.c:2282:57: error: invalid use of undefined type ‘struct platform_device’ 2282 | struct an8855_priv *priv = dev_get_drvdata(&pdev->dev); | ^~ ../drivers/net/dsa/an8855.c: At top level: ../drivers/net/dsa/an8855.c:2295:15: error: variable ‘an8855_switch_driver’ has initializer but incomplete type 2295 | static struct platform_driver an8855_switch_driver = { | ^~~~~~~~~~~~~~~ ../drivers/net/dsa/an8855.c:2296:10: error: ‘struct platform_driver’ has no member named ‘probe’ 2296 | .probe = an8855_switch_probe, | ^~~~~ ../drivers/net/dsa/an8855.c:2296:18: warning: excess elements in struct initializer 2296 | .probe = an8855_switch_probe, | ^~~~~~~~~~~~~~~~~~~ ../drivers/net/dsa/an8855.c:2296:18: note: (near initialization for ‘an8855_switch_driver’) ../drivers/net/dsa/an8855.c:2297:10: error: ‘struct platform_driver’ has no member named ‘remove’ 2297 | .remove = an8855_switch_remove, | ^~~~~~ ../drivers/net/dsa/an8855.c:2297:19: warning: excess elements in struct initializer 2297 | .remove = an8855_switch_remove, | ^~~~~~~~~~~~~~~~~~~~ ../drivers/net/dsa/an8855.c:2297:19: note: (near initialization for ‘an8855_switch_driver’) ../drivers/net/dsa/an8855.c:2298:10: error: ‘struct platform_driver’ has no member named ‘driver’ 2298 | .driver = { | ^~~~~~ ../drivers/net/dsa/an8855.c:2298:19: error: extra brace group at end of initializer 2298 | .driver = { | ^ ../drivers/net/dsa/an8855.c:2298:19: note: (near initialization for ‘an8855_switch_driver’) ../drivers/net/dsa/an8855.c:2298:19: warning: excess elements in struct initializer ../drivers/net/dsa/an8855.c:2298:19: note: (near initialization for ‘an8855_switch_driver’) ../drivers/net/dsa/an8855.c:2303:1: warning: data definition has no type or storage class 2303 | module_platform_driver(an8855_switch_driver); | ^~~~~~~~~~~~~~~~~~~~~~ ../drivers/net/dsa/an8855.c:2303:1: error: type defaults to ‘int’ in declaration of ‘module_platform_driver’ [-Wimplicit-int] ../drivers/net/dsa/an8855.c:2303:1: error: parameter names (without types) in function declaration [-Wdeclaration-missing-parameter-type] ../drivers/net/dsa/an8855.c:2295:31: error: storage size of ‘an8855_switch_driver’ isn’t known 2295 | static struct platform_driver an8855_switch_driver = { | ^~~~~~~~~~~~~~~~~~~~ ../drivers/net/dsa/an8855.c:2295:31: warning: ‘an8855_switch_driver’ defined but not used [-Wunused-variable] make[6]: *** [../scripts/Makefile.build:194: drivers/net/dsa/an8855.o] Error 1 make[5]: *** [../scripts/Makefile.build:440: drivers/net/dsa] Error 2 make[4]: *** [../scripts/Makefile.build:440: drivers/net] Error 2 make[4]: *** Waiting for unfinished jobs.... make[3]: *** [../scripts/Makefile.build:440: drivers] Error 2 make[2]: *** [/home/nipa/net-next/wt-1/Makefile:1989: .] Error 2 make[1]: *** [/home/nipa/net-next/wt-1/Makefile:251: __sub-make] Error 2 make: *** [Makefile:251: __sub-make] Error 2 ../kernel/sys.c:1111:32: warning: incorrect type in argument 1 (different address spaces) ../kernel/sys.c:1111:32: expected struct task_struct *p1 ../kernel/sys.c:1111:32: got struct task_struct [noderef] __rcu *real_parent ../kernel/sys.c:1858:33: warning: context imbalance in 'getrusage' - different lock contexts for basic block ../drivers/base/firmware_loader/main.c:229:9: warning: context imbalance in 'free_fw_priv' - wrong count at exit ../drivers/gpu/drm/amd/amdgpu/amdgpu_dev_coredump.c: note: in included file (through ../drivers/gpu/drm/amd/amdgpu/amdgpu_virt.h, ../drivers/gpu/drm/amd/amdgpu/amdgpu.h, ../drivers/gpu/drm/amd/amdgpu/amdgpu_dev_coredump.h): ../drivers/gpu/drm/amd/amdgpu/amdgv_sriovmsg.h:414:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" WARNING: modpost: missing MODULE_DESCRIPTION() in drivers/block/rnull_mod.o ld: vmlinux.o: in function `an8855_mii_set_page': (.text+0x1c2ff45): undefined reference to `__mdiobus_write' ld: vmlinux.o: in function `an8855_mii_write32': airoha-an8855.c:(.text+0x1c30038): undefined reference to `__mdiobus_write' ld: airoha-an8855.c:(.text+0x1c30065): undefined reference to `__mdiobus_write' ld: airoha-an8855.c:(.text+0x1c3008c): undefined reference to `__mdiobus_write' ld: airoha-an8855.c:(.text+0x1c300b5): undefined reference to `__mdiobus_write' ld: vmlinux.o:airoha-an8855.c:(.text+0x1c300dc): more undefined references to `__mdiobus_write' follow ld: vmlinux.o: in function `an8855_mii_read32': airoha-an8855.c:(.text+0x1c30233): undefined reference to `__mdiobus_read' ld: airoha-an8855.c:(.text+0x1c30256): undefined reference to `__mdiobus_read' ld: vmlinux.o: in function `an8855_regmap_write': airoha-an8855.c:(.text+0x1c30582): undefined reference to `__mdiobus_write' ld: vmlinux.o: in function `an8855_regmap_read': airoha-an8855.c:(.text+0x1c30704): undefined reference to `__mdiobus_write' ld: vmlinux.o: in function `an8855_regmap_update_bits': airoha-an8855.c:(.text+0x1c3089d): undefined reference to `__mdiobus_write' ld: vmlinux.o: in function `mdio_module_init': airoha-an8855.c:(.init.text+0x17eb61): undefined reference to `mdio_driver_register' ld: vmlinux.o: in function `mdio_module_exit': airoha-an8855.c:(.exit.text+0x52da): undefined reference to `mdio_driver_unregister' make[3]: *** [../scripts/Makefile.vmlinux:77: vmlinux] Error 1 make[2]: *** [/home/nipa/net-next/wt-1/Makefile:1225: vmlinux] Error 2 make[2]: *** Waiting for unfinished jobs.... make[1]: *** [/home/nipa/net-next/wt-1/Makefile:251: __sub-make] Error 2 make: *** [Makefile:251: __sub-make] Error 2 ../kernel/sys.c:1111:32: warning: incorrect type in argument 1 (different address spaces) ../kernel/sys.c:1111:32: expected struct task_struct *p1 ../kernel/sys.c:1111:32: got struct task_struct [noderef] __rcu *real_parent ../kernel/sys.c:1858:33: warning: context imbalance in 'getrusage' - different lock contexts for basic block ../drivers/base/firmware_loader/main.c:229:9: warning: context imbalance in 'free_fw_priv' - wrong count at exit ../drivers/net/dsa/an8855.c: In function ‘an8855_switch_probe’: ../drivers/net/dsa/an8855.c:2227:34: error: invalid use of undefined type ‘struct platform_device’ 2227 | priv = devm_kzalloc(&pdev->dev, sizeof(*priv), GFP_KERNEL); | ^~ ../drivers/net/dsa/an8855.c:2231:26: error: invalid use of undefined type ‘struct platform_device’ 2231 | priv->dev = &pdev->dev; | ^~ ../drivers/net/dsa/an8855.c: In function ‘an8855_switch_remove’: ../drivers/net/dsa/an8855.c:2282:57: error: invalid use of undefined type ‘struct platform_device’ 2282 | struct an8855_priv *priv = dev_get_drvdata(&pdev->dev); | ^~ ../drivers/net/dsa/an8855.c: At top level: ../drivers/net/dsa/an8855.c:2295:15: error: variable ‘an8855_switch_driver’ has initializer but incomplete type 2295 | static struct platform_driver an8855_switch_driver = { | ^~~~~~~~~~~~~~~ ../drivers/net/dsa/an8855.c:2296:10: error: ‘struct platform_driver’ has no member named ‘probe’ 2296 | .probe = an8855_switch_probe, | ^~~~~ ../drivers/net/dsa/an8855.c:2296:18: warning: excess elements in struct initializer 2296 | .probe = an8855_switch_probe, | ^~~~~~~~~~~~~~~~~~~ ../drivers/net/dsa/an8855.c:2296:18: note: (near initialization for ‘an8855_switch_driver’) ../drivers/net/dsa/an8855.c:2297:10: error: ‘struct platform_driver’ has no member named ‘remove’ 2297 | .remove = an8855_switch_remove, | ^~~~~~ ../drivers/net/dsa/an8855.c:2297:19: warning: excess elements in struct initializer 2297 | .remove = an8855_switch_remove, | ^~~~~~~~~~~~~~~~~~~~ ../drivers/net/dsa/an8855.c:2297:19: note: (near initialization for ‘an8855_switch_driver’) ../drivers/net/dsa/an8855.c:2298:10: error: ‘struct platform_driver’ has no member named ‘driver’ 2298 | .driver = { | ^~~~~~ ../drivers/net/dsa/an8855.c:2298:19: error: extra brace group at end of initializer 2298 | .driver = { | ^ ../drivers/net/dsa/an8855.c:2298:19: note: (near initialization for ‘an8855_switch_driver’) ../drivers/net/dsa/an8855.c:2298:19: warning: excess elements in struct initializer ../drivers/net/dsa/an8855.c:2298:19: note: (near initialization for ‘an8855_switch_driver’) ../drivers/net/dsa/an8855.c:2303:1: warning: data definition has no type or storage class 2303 | module_platform_driver(an8855_switch_driver); | ^~~~~~~~~~~~~~~~~~~~~~ ../drivers/net/dsa/an8855.c:2303:1: error: type defaults to ‘int’ in declaration of ‘module_platform_driver’ [-Wimplicit-int] ../drivers/net/dsa/an8855.c:2303:1: error: parameter names (without types) in function declaration [-Wdeclaration-missing-parameter-type] ../drivers/net/dsa/an8855.c:2295:31: error: storage size of ‘an8855_switch_driver’ isn’t known 2295 | static struct platform_driver an8855_switch_driver = { | ^~~~~~~~~~~~~~~~~~~~ ../drivers/net/dsa/an8855.c:2295:31: warning: ‘an8855_switch_driver’ defined but not used [-Wunused-variable] make[6]: *** [../scripts/Makefile.build:194: drivers/net/dsa/an8855.o] Error 1 make[5]: *** [../scripts/Makefile.build:440: drivers/net/dsa] Error 2 make[5]: *** Waiting for unfinished jobs.... make[4]: *** [../scripts/Makefile.build:440: drivers/net] Error 2 make[4]: *** Waiting for unfinished jobs.... ../drivers/gpu/drm/amd/amdgpu/amdgpu_dev_coredump.c: note: in included file (through ../drivers/gpu/drm/amd/amdgpu/amdgpu_virt.h, ../drivers/gpu/drm/amd/amdgpu/amdgpu.h, ../drivers/gpu/drm/amd/amdgpu/amdgpu_dev_coredump.h): ../drivers/gpu/drm/amd/amdgpu/amdgv_sriovmsg.h:414:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" make[3]: *** [../scripts/Makefile.build:440: drivers] Error 2 make[3]: *** Waiting for unfinished jobs.... make[2]: *** [/home/nipa/net-next/wt-1/Makefile:1989: .] Error 2 make[1]: *** [/home/nipa/net-next/wt-1/Makefile:251: __sub-make] Error 2 make: *** [Makefile:251: __sub-make] Error 2 New errors added --- /tmp/tmp.APr9SbdjNy 2024-12-07 18:44:41.709929472 -0800 +++ /tmp/tmp.HNHidNprsl 2024-12-07 18:45:07.729658863 -0800 @@ -5,0 +6,52 @@ +../drivers/net/dsa/an8855.c: In function ‘an8855_switch_probe’: +../drivers/net/dsa/an8855.c:2227:34: error: invalid use of undefined type ‘struct platform_device’ + 2227 | priv = devm_kzalloc(&pdev->dev, sizeof(*priv), GFP_KERNEL); + | ^~ +../drivers/net/dsa/an8855.c:2231:26: error: invalid use of undefined type ‘struct platform_device’ + 2231 | priv->dev = &pdev->dev; + | ^~ +../drivers/net/dsa/an8855.c: In function ‘an8855_switch_remove’: +../drivers/net/dsa/an8855.c:2282:57: error: invalid use of undefined type ‘struct platform_device’ + 2282 | struct an8855_priv *priv = dev_get_drvdata(&pdev->dev); + | ^~ +../drivers/net/dsa/an8855.c: At top level: +../drivers/net/dsa/an8855.c:2295:15: error: variable ‘an8855_switch_driver’ has initializer but incomplete type + 2295 | static struct platform_driver an8855_switch_driver = { + | ^~~~~~~~~~~~~~~ +../drivers/net/dsa/an8855.c:2296:10: error: ‘struct platform_driver’ has no member named ‘probe’ + 2296 | .probe = an8855_switch_probe, + | ^~~~~ +../drivers/net/dsa/an8855.c:2296:18: warning: excess elements in struct initializer + 2296 | .probe = an8855_switch_probe, + | ^~~~~~~~~~~~~~~~~~~ +../drivers/net/dsa/an8855.c:2296:18: note: (near initialization for ‘an8855_switch_driver’) +../drivers/net/dsa/an8855.c:2297:10: error: ‘struct platform_driver’ has no member named ‘remove’ + 2297 | .remove = an8855_switch_remove, + | ^~~~~~ +../drivers/net/dsa/an8855.c:2297:19: warning: excess elements in struct initializer + 2297 | .remove = an8855_switch_remove, + | ^~~~~~~~~~~~~~~~~~~~ +../drivers/net/dsa/an8855.c:2297:19: note: (near initialization for ‘an8855_switch_driver’) +../drivers/net/dsa/an8855.c:2298:10: error: ‘struct platform_driver’ has no member named ‘driver’ + 2298 | .driver = { + | ^~~~~~ +../drivers/net/dsa/an8855.c:2298:19: error: extra brace group at end of initializer + 2298 | .driver = { + | ^ +../drivers/net/dsa/an8855.c:2298:19: note: (near initialization for ‘an8855_switch_driver’) +../drivers/net/dsa/an8855.c:2298:19: warning: excess elements in struct initializer +../drivers/net/dsa/an8855.c:2298:19: note: (near initialization for ‘an8855_switch_driver’) +../drivers/net/dsa/an8855.c:2303:1: warning: data definition has no type or storage class + 2303 | module_platform_driver(an8855_switch_driver); + | ^~~~~~~~~~~~~~~~~~~~~~ +../drivers/net/dsa/an8855.c:2303:1: error: type defaults to ‘int’ in declaration of ‘module_platform_driver’ [-Wimplicit-int] +../drivers/net/dsa/an8855.c:2303:1: error: parameter names (without types) in function declaration [-Wdeclaration-missing-parameter-type] +../drivers/net/dsa/an8855.c:2295:31: error: storage size of ‘an8855_switch_driver’ isn’t known + 2295 | static struct platform_driver an8855_switch_driver = { + | ^~~~~~~~~~~~~~~~~~~~ +../drivers/net/dsa/an8855.c:2295:31: warning: ‘an8855_switch_driver’ defined but not used [-Wunused-variable] +make[6]: *** [../scripts/Makefile.build:194: drivers/net/dsa/an8855.o] Error 1 +make[5]: *** [../scripts/Makefile.build:440: drivers/net/dsa] Error 2 +make[5]: *** Waiting for unfinished jobs.... +make[4]: *** [../scripts/Makefile.build:440: drivers/net] Error 2 +make[4]: *** Waiting for unfinished jobs.... @@ -8,25 +60,3 @@ -WARNING: modpost: missing MODULE_DESCRIPTION() in drivers/block/rnull_mod.o -ld: vmlinux.o: in function `an8855_mii_set_page': -(.text+0x1c2ff45): undefined reference to `__mdiobus_write' -ld: vmlinux.o: in function `an8855_mii_write32': -airoha-an8855.c:(.text+0x1c30038): undefined reference to `__mdiobus_write' -ld: airoha-an8855.c:(.text+0x1c30065): undefined reference to `__mdiobus_write' -ld: airoha-an8855.c:(.text+0x1c3008c): undefined reference to `__mdiobus_write' -ld: airoha-an8855.c:(.text+0x1c300b5): undefined reference to `__mdiobus_write' -ld: vmlinux.o:airoha-an8855.c:(.text+0x1c300dc): more undefined references to `__mdiobus_write' follow -ld: vmlinux.o: in function `an8855_mii_read32': -airoha-an8855.c:(.text+0x1c30233): undefined reference to `__mdiobus_read' -ld: airoha-an8855.c:(.text+0x1c30256): undefined reference to `__mdiobus_read' -ld: vmlinux.o: in function `an8855_regmap_write': -airoha-an8855.c:(.text+0x1c30582): undefined reference to `__mdiobus_write' -ld: vmlinux.o: in function `an8855_regmap_read': -airoha-an8855.c:(.text+0x1c30704): undefined reference to `__mdiobus_write' -ld: vmlinux.o: in function `an8855_regmap_update_bits': -airoha-an8855.c:(.text+0x1c3089d): undefined reference to `__mdiobus_write' -ld: vmlinux.o: in function `mdio_module_init': -airoha-an8855.c:(.init.text+0x17eb61): undefined reference to `mdio_driver_register' -ld: vmlinux.o: in function `mdio_module_exit': -airoha-an8855.c:(.exit.text+0x52da): undefined reference to `mdio_driver_unregister' -make[3]: *** [../scripts/Makefile.vmlinux:77: vmlinux] Error 1 -make[2]: *** [/home/nipa/net-next/wt-1/Makefile:1225: vmlinux] Error 2 -make[2]: *** Waiting for unfinished jobs.... +make[3]: *** [../scripts/Makefile.build:440: drivers] Error 2 +make[3]: *** Waiting for unfinished jobs.... +make[2]: *** [/home/nipa/net-next/wt-1/Makefile:1989: .] Error 2 Per-file breakdown --- /tmp/tmp.qz21xzIUc4 2024-12-07 18:45:07.739658758 -0800 +++ /tmp/tmp.SMqwd2VFAj 2024-12-07 18:45:07.742658727 -0800 @@ -2,0 +3 @@ + 16 ../drivers/net/dsa/an8855.c