../drivers/net/phy/air_an8855.c:100:6: warning: unused variable 'ret' [-Wunused-variable] 100 | int ret; | ^~~ ../drivers/net/phy/air_an8855.c:154:31: error: use of undeclared identifier 'dev' 154 | ret = en8855_get_r50ohm_val(dev, "tx_a", &calibration_data[0]); | ^ ../drivers/net/phy/air_an8855.c:158:31: error: use of undeclared identifier 'dev' 158 | ret = en8855_get_r50ohm_val(dev, "tx_b", &calibration_data[1]); | ^ ../drivers/net/phy/air_an8855.c:162:31: error: use of undeclared identifier 'dev' 162 | ret = en8855_get_r50ohm_val(dev, "tx_c", &calibration_data[2]); | ^ ../drivers/net/phy/air_an8855.c:166:31: error: use of undeclared identifier 'dev' 166 | ret = en8855_get_r50ohm_val(dev, "tx_d", &calibration_data[3]); | ^ 1 warning and 4 errors generated. make[6]: *** [../scripts/Makefile.build:194: drivers/net/phy/air_an8855.o] Error 1 make[5]: *** [../scripts/Makefile.build:440: drivers/net/phy] Error 2 make[5]: *** 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[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() ../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 ../drivers/net/phy/air_an8855.c:100:6: warning: unused variable 'ret' [-Wunused-variable] 100 | int ret; | ^~~ ../drivers/net/phy/air_an8855.c:154:31: error: use of undeclared identifier 'dev' 154 | ret = en8855_get_r50ohm_val(dev, "tx_a", &calibration_data[0]); | ^ ../drivers/net/phy/air_an8855.c:158:31: error: use of undeclared identifier 'dev' 158 | ret = en8855_get_r50ohm_val(dev, "tx_b", &calibration_data[1]); | ^ ../drivers/net/phy/air_an8855.c:162:31: error: use of undeclared identifier 'dev' 162 | ret = en8855_get_r50ohm_val(dev, "tx_c", &calibration_data[2]); | ^ ../drivers/net/phy/air_an8855.c:166:31: error: use of undeclared identifier 'dev' 166 | ret = en8855_get_r50ohm_val(dev, "tx_d", &calibration_data[3]); | ^ 1 warning and 4 errors generated. make[6]: *** [../scripts/Makefile.build:194: drivers/net/phy/air_an8855.o] Error 1 make[5]: *** [../scripts/Makefile.build:440: drivers/net/phy] Error 2 make[5]: *** Waiting for unfinished jobs.... 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[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 New errors added --- /tmp/tmp.xsPQsV1wdB 2024-12-07 17:56:34.439045330 -0800 +++ /tmp/tmp.ZfM46LbJxi 2024-12-07 17:56:54.469775249 -0800 @@ -0,0 +1,19 @@ +../drivers/net/phy/air_an8855.c:100:6: warning: unused variable 'ret' [-Wunused-variable] + 100 | int ret; + | ^~~ +../drivers/net/phy/air_an8855.c:154:31: error: use of undeclared identifier 'dev' + 154 | ret = en8855_get_r50ohm_val(dev, "tx_a", &calibration_data[0]); + | ^ +../drivers/net/phy/air_an8855.c:158:31: error: use of undeclared identifier 'dev' + 158 | ret = en8855_get_r50ohm_val(dev, "tx_b", &calibration_data[1]); + | ^ +../drivers/net/phy/air_an8855.c:162:31: error: use of undeclared identifier 'dev' + 162 | ret = en8855_get_r50ohm_val(dev, "tx_c", &calibration_data[2]); + | ^ +../drivers/net/phy/air_an8855.c:166:31: error: use of undeclared identifier 'dev' + 166 | ret = en8855_get_r50ohm_val(dev, "tx_d", &calibration_data[3]); + | ^ +1 warning and 4 errors generated. +make[6]: *** [../scripts/Makefile.build:194: drivers/net/phy/air_an8855.o] Error 1 +make[5]: *** [../scripts/Makefile.build:440: drivers/net/phy] Error 2 +make[5]: *** Waiting for unfinished jobs.... @@ -36 +54,0 @@ -make[5]: *** Waiting for unfinished jobs.... @@ -40 +57,0 @@ -make[3]: *** Waiting for unfinished jobs.... Per-file breakdown --- /tmp/tmp.5mIzKkvMIm 2024-12-07 17:56:54.478775122 -0800 +++ /tmp/tmp.x79uzjk3pM 2024-12-07 17:56:54.481775080 -0800 @@ -1,0 +2 @@ + 5 ../drivers/net/phy/air_an8855.c