========== build_32bit - 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 ld: drivers/mfd/airoha-an8855.o: in function `an8855_mii_set_page': airoha-an8855.c:(.text+0x24): undefined reference to `__mdiobus_write' ld: drivers/mfd/airoha-an8855.o: in function `an8855_mii_write32': airoha-an8855.c:(.text+0x90): undefined reference to `__mdiobus_write' ld: airoha-an8855.c:(.text+0xac): undefined reference to `__mdiobus_write' ld: airoha-an8855.c:(.text+0xc6): undefined reference to `__mdiobus_write' ld: airoha-an8855.c:(.text+0xe2): undefined reference to `__mdiobus_write' ld: drivers/mfd/airoha-an8855.o:airoha-an8855.c:(.text+0xfc): more undefined references to `__mdiobus_write' follow ld: drivers/mfd/airoha-an8855.o: in function `an8855_mii_read32': airoha-an8855.c:(.text+0x1af): undefined reference to `__mdiobus_read' ld: airoha-an8855.c:(.text+0x1c3): undefined reference to `__mdiobus_read' ld: drivers/mfd/airoha-an8855.o: in function `an8855_regmap_write': airoha-an8855.c:(.text+0x315): undefined reference to `__mdiobus_write' ld: drivers/mfd/airoha-an8855.o: in function `an8855_regmap_read': airoha-an8855.c:(.text+0x3c5): undefined reference to `__mdiobus_write' ld: drivers/mfd/airoha-an8855.o: in function `an8855_regmap_update_bits': airoha-an8855.c:(.text+0x488): undefined reference to `__mdiobus_write' ld: drivers/mfd/airoha-an8855.o: in function `mdio_module_init': airoha-an8855.c:(.init.text+0xe): undefined reference to `mdio_driver_register' ld: drivers/mfd/airoha-an8855.o: in function `mdio_module_exit': airoha-an8855.c:(.exit.text+0x9): 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 ../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[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.5aYyIoW5X4 2024-12-07 17:04:07.376473591 -0800 +++ /tmp/tmp.Wu1R2juOJS 2024-12-07 17:04:31.431219433 -0800 @@ -1,24 +1,54 @@ -ld: drivers/mfd/airoha-an8855.o: in function `an8855_mii_set_page': -airoha-an8855.c:(.text+0x24): undefined reference to `__mdiobus_write' -ld: drivers/mfd/airoha-an8855.o: in function `an8855_mii_write32': -airoha-an8855.c:(.text+0x90): undefined reference to `__mdiobus_write' -ld: airoha-an8855.c:(.text+0xac): undefined reference to `__mdiobus_write' -ld: airoha-an8855.c:(.text+0xc6): undefined reference to `__mdiobus_write' -ld: airoha-an8855.c:(.text+0xe2): undefined reference to `__mdiobus_write' -ld: drivers/mfd/airoha-an8855.o:airoha-an8855.c:(.text+0xfc): more undefined references to `__mdiobus_write' follow -ld: drivers/mfd/airoha-an8855.o: in function `an8855_mii_read32': -airoha-an8855.c:(.text+0x1af): undefined reference to `__mdiobus_read' -ld: airoha-an8855.c:(.text+0x1c3): undefined reference to `__mdiobus_read' -ld: drivers/mfd/airoha-an8855.o: in function `an8855_regmap_write': -airoha-an8855.c:(.text+0x315): undefined reference to `__mdiobus_write' -ld: drivers/mfd/airoha-an8855.o: in function `an8855_regmap_read': -airoha-an8855.c:(.text+0x3c5): undefined reference to `__mdiobus_write' -ld: drivers/mfd/airoha-an8855.o: in function `an8855_regmap_update_bits': -airoha-an8855.c:(.text+0x488): undefined reference to `__mdiobus_write' -ld: drivers/mfd/airoha-an8855.o: in function `mdio_module_init': -airoha-an8855.c:(.init.text+0xe): undefined reference to `mdio_driver_register' -ld: drivers/mfd/airoha-an8855.o: in function `mdio_module_exit': -airoha-an8855.c:(.exit.text+0x9): 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.... +../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[3]: *** Waiting for unfinished jobs.... +make[2]: *** [/home/nipa/net-next/wt-1/Makefile:1989: .] Error 2 Per-file breakdown --- /tmp/tmp.2zCFEUKnWz 2024-12-07 17:04:31.438219359 -0800 +++ /tmp/tmp.iuQ6HcGkID 2024-12-07 17:04:31.442219317 -0800 @@ -0,0 +1 @@ + 16 ../drivers/net/dsa/an8855.c