../drivers/net/phy/phy_device.c: In function ‘of_phy_led’: ../drivers/net/phy/phy_device.c:3318:21: error: ‘total_led_count’ undeclared (first use in this function) 3318 | if (total_led_count != 1) | ^~~~~~~~~~~~~~~ ../drivers/net/phy/phy_device.c:3318:21: note: each undeclared identifier is reported only once for each function it appears in ../drivers/net/phy/phy_device.c:3299:13: warning: variable ‘led_count’ set but not used [-Wunused-but-set-variable] 3299 | int led_count; | ^~~~~~~~~ make[6]: *** [../scripts/Makefile.build:194: drivers/net/phy/phy_device.o] Error 1 make[5]: *** [../scripts/Makefile.build:440: drivers/net/phy] 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:1993: .] 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/phy_device.c: In function ‘of_phy_led’: ../drivers/net/phy/phy_device.c:3318:21: error: ‘total_led_count’ undeclared (first use in this function) 3318 | if (total_led_count != 1) | ^~~~~~~~~~~~~~~ ../drivers/net/phy/phy_device.c:3318:21: note: each undeclared identifier is reported only once for each function it appears in ../drivers/net/phy/phy_device.c:3299:13: warning: variable ‘led_count’ set but not used [-Wunused-but-set-variable] 3299 | int led_count; | ^~~~~~~~~ make[6]: *** [../scripts/Makefile.build:194: drivers/net/phy/phy_device.o] Error 1 make[5]: *** [../scripts/Makefile.build:440: drivers/net/phy] 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:1993: .] 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.mZa5hKddFs 2025-01-20 00:31:56.160687909 -0800 +++ /tmp/tmp.C4SQI5ye1Q 2025-01-20 00:32:07.634560099 -0800 @@ -0,0 +1,17 @@ +../drivers/net/phy/phy_device.c: In function ‘of_phy_led’: +../drivers/net/phy/phy_device.c:3318:21: error: ‘total_led_count’ undeclared (first use in this function) + 3318 | if (total_led_count != 1) + | ^~~~~~~~~~~~~~~ +../drivers/net/phy/phy_device.c:3318:21: note: each undeclared identifier is reported only once for each function it appears in +../drivers/net/phy/phy_device.c:3299:13: warning: variable ‘led_count’ set but not used [-Wunused-but-set-variable] + 3299 | int led_count; + | ^~~~~~~~~ +make[6]: *** [../scripts/Makefile.build:194: drivers/net/phy/phy_device.o] Error 1 +make[5]: *** [../scripts/Makefile.build:440: drivers/net/phy] 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:1993: .] Error 2 +make[1]: *** [/home/nipa/net-next/wt-1/Makefile:251: __sub-make] Error 2 +make: *** [Makefile:251: __sub-make] Error 2 Per-file breakdown --- /tmp/tmp.PKraw7ejKu 2025-01-20 00:32:07.640560032 -0800 +++ /tmp/tmp.JB4fCBxEYn 2025-01-20 00:32:07.644559988 -0800 @@ -0,0 +1 @@ + 2 ../drivers/net/phy/phy_device.c