========== build_clang - FAILED ../drivers/net/dsa/an8855.c:2227:27: error: incomplete definition of type 'struct platform_device' 2227 | priv = devm_kzalloc(&pdev->dev, sizeof(*priv), GFP_KERNEL); | ~~~~^ ../include/linux/leds.h:26:8: note: forward declaration of 'struct platform_device' 26 | struct platform_device; | ^ ../drivers/net/dsa/an8855.c:2231:19: error: incomplete definition of type 'struct platform_device' 2231 | priv->dev = &pdev->dev; | ~~~~^ ../include/linux/leds.h:26:8: note: forward declaration of 'struct platform_device' 26 | struct platform_device; | ^ ../drivers/net/dsa/an8855.c:2282:50: error: incomplete definition of type 'struct platform_device' 2282 | struct an8855_priv *priv = dev_get_drvdata(&pdev->dev); | ~~~~^ ../include/linux/leds.h:26:8: note: forward declaration of 'struct platform_device' 26 | struct platform_device; | ^ ../drivers/net/dsa/an8855.c:2295:31: error: variable has incomplete type 'struct platform_driver' 2295 | static struct platform_driver an8855_switch_driver = { | ^ ../drivers/net/dsa/an8855.c:2295:15: note: forward declaration of 'struct platform_driver' 2295 | static struct platform_driver an8855_switch_driver = { | ^ ../drivers/net/dsa/an8855.c:2303:1: error: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 2303 | module_platform_driver(an8855_switch_driver); | ^ | int ../drivers/net/dsa/an8855.c:2303:24: error: a parameter list without types is only allowed in a function definition 2303 | module_platform_driver(an8855_switch_driver); | ^ 6 errors generated. 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.... 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 drivers/nvme/target/nvmet.o: warning: objtool: nvmet_ctrl_state_show() falls through to next function __cfi_nvmet_ctrl_host_traddr_open() ld.lld: error: undefined symbol: __mdiobus_write >>> referenced by airoha-an8855.c:32 (/home/nipa/net-next/wt-1/build_clang/../drivers/mfd/airoha-an8855.c:32) >>> vmlinux.o:(an8855_mii_set_page) >>> referenced by airoha-an8855.c:32 (/home/nipa/net-next/wt-1/build_clang/../drivers/mfd/airoha-an8855.c:32) >>> vmlinux.o:(an8855_regmap_read) >>> referenced by airoha-an8855.c:32 (/home/nipa/net-next/wt-1/build_clang/../drivers/mfd/airoha-an8855.c:32) >>> vmlinux.o:(an8855_regmap_write) >>> referenced 9 more times ld.lld: error: undefined symbol: __mdiobus_read >>> referenced by airoha-an8855.c:62 (/home/nipa/net-next/wt-1/build_clang/../drivers/mfd/airoha-an8855.c:62) >>> vmlinux.o:(an8855_mii_read32) >>> referenced by airoha-an8855.c:67 (/home/nipa/net-next/wt-1/build_clang/../drivers/mfd/airoha-an8855.c:67) >>> vmlinux.o:(an8855_mii_read32) ld.lld: error: undefined symbol: mdio_driver_register >>> referenced by airoha-an8855.c:275 (/home/nipa/net-next/wt-1/build_clang/../drivers/mfd/airoha-an8855.c:275) >>> vmlinux.o:(mdio_module_init) ld.lld: error: undefined symbol: mdio_driver_unregister >>> referenced by airoha-an8855.c:275 (/home/nipa/net-next/wt-1/build_clang/../drivers/mfd/airoha-an8855.c:275) >>> vmlinux.o:(mdio_module_exit) 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/nvme/target/nvmet.o: warning: objtool: nvmet_ctrl_state_show() falls through to next function __cfi_nvmet_ctrl_host_traddr_open() ../drivers/net/dsa/an8855.c:2227:27: error: incomplete definition of type 'struct platform_device' 2227 | priv = devm_kzalloc(&pdev->dev, sizeof(*priv), GFP_KERNEL); | ~~~~^ ../include/linux/leds.h:26:8: note: forward declaration of 'struct platform_device' 26 | struct platform_device; | ^ ../drivers/net/dsa/an8855.c:2231:19: error: incomplete definition of type 'struct platform_device' 2231 | priv->dev = &pdev->dev; | ~~~~^ ../include/linux/leds.h:26:8: note: forward declaration of 'struct platform_device' 26 | struct platform_device; | ^ ../drivers/net/dsa/an8855.c:2282:50: error: incomplete definition of type 'struct platform_device' 2282 | struct an8855_priv *priv = dev_get_drvdata(&pdev->dev); | ~~~~^ ../include/linux/leds.h:26:8: note: forward declaration of 'struct platform_device' 26 | struct platform_device; | ^ ../drivers/net/dsa/an8855.c:2295:31: error: variable has incomplete type 'struct platform_driver' 2295 | static struct platform_driver an8855_switch_driver = { | ^ ../drivers/net/dsa/an8855.c:2295:15: note: forward declaration of 'struct platform_driver' 2295 | static struct platform_driver an8855_switch_driver = { | ^ ../drivers/net/dsa/an8855.c:2303:1: error: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 2303 | module_platform_driver(an8855_switch_driver); | ^ | int ../drivers/net/dsa/an8855.c:2303:24: error: a parameter list without types is only allowed in a function definition 2303 | module_platform_driver(an8855_switch_driver); | ^ 6 errors generated. 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.... 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.u0Ur7vPikd 2024-12-07 17:55:19.810942137 -0800 +++ /tmp/tmp.XPs1MwekRK 2024-12-07 17:55:49.049590777 -0800 @@ -2,25 +2,40 @@ -ld.lld: error: undefined symbol: __mdiobus_write ->>> referenced by airoha-an8855.c:32 (/home/nipa/net-next/wt-1/build_clang/../drivers/mfd/airoha-an8855.c:32) ->>> vmlinux.o:(an8855_mii_set_page) ->>> referenced by airoha-an8855.c:32 (/home/nipa/net-next/wt-1/build_clang/../drivers/mfd/airoha-an8855.c:32) ->>> vmlinux.o:(an8855_regmap_read) ->>> referenced by airoha-an8855.c:32 (/home/nipa/net-next/wt-1/build_clang/../drivers/mfd/airoha-an8855.c:32) ->>> vmlinux.o:(an8855_regmap_write) ->>> referenced 9 more times - -ld.lld: error: undefined symbol: __mdiobus_read ->>> referenced by airoha-an8855.c:62 (/home/nipa/net-next/wt-1/build_clang/../drivers/mfd/airoha-an8855.c:62) ->>> vmlinux.o:(an8855_mii_read32) ->>> referenced by airoha-an8855.c:67 (/home/nipa/net-next/wt-1/build_clang/../drivers/mfd/airoha-an8855.c:67) ->>> vmlinux.o:(an8855_mii_read32) - -ld.lld: error: undefined symbol: mdio_driver_register ->>> referenced by airoha-an8855.c:275 (/home/nipa/net-next/wt-1/build_clang/../drivers/mfd/airoha-an8855.c:275) ->>> vmlinux.o:(mdio_module_init) - -ld.lld: error: undefined symbol: mdio_driver_unregister ->>> referenced by airoha-an8855.c:275 (/home/nipa/net-next/wt-1/build_clang/../drivers/mfd/airoha-an8855.c:275) ->>> vmlinux.o:(mdio_module_exit) -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:2227:27: error: incomplete definition of type 'struct platform_device' + 2227 | priv = devm_kzalloc(&pdev->dev, sizeof(*priv), GFP_KERNEL); + | ~~~~^ +../include/linux/leds.h:26:8: note: forward declaration of 'struct platform_device' + 26 | struct platform_device; + | ^ +../drivers/net/dsa/an8855.c:2231:19: error: incomplete definition of type 'struct platform_device' + 2231 | priv->dev = &pdev->dev; + | ~~~~^ +../include/linux/leds.h:26:8: note: forward declaration of 'struct platform_device' + 26 | struct platform_device; + | ^ +../drivers/net/dsa/an8855.c:2282:50: error: incomplete definition of type 'struct platform_device' + 2282 | struct an8855_priv *priv = dev_get_drvdata(&pdev->dev); + | ~~~~^ +../include/linux/leds.h:26:8: note: forward declaration of 'struct platform_device' + 26 | struct platform_device; + | ^ +../drivers/net/dsa/an8855.c:2295:31: error: variable has incomplete type 'struct platform_driver' + 2295 | static struct platform_driver an8855_switch_driver = { + | ^ +../drivers/net/dsa/an8855.c:2295:15: note: forward declaration of 'struct platform_driver' + 2295 | static struct platform_driver an8855_switch_driver = { + | ^ +../drivers/net/dsa/an8855.c:2303:1: error: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] + 2303 | module_platform_driver(an8855_switch_driver); + | ^ + | int +../drivers/net/dsa/an8855.c:2303:24: error: a parameter list without types is only allowed in a function definition + 2303 | module_platform_driver(an8855_switch_driver); + | ^ +6 errors generated. +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.... +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.xNzGolqiqY 2024-12-07 17:55:49.055590704 -0800 +++ /tmp/tmp.BZ2fDg99Ku 2024-12-07 17:55:49.059590656 -0800 @@ -0,0 +1 @@ + 6 ../drivers/net/dsa/an8855.c