../drivers/net/phy/qcom/qca807x.c:698:19: error: ‘phy_sfp_attach’ undeclared here (not in a function); did you mean ‘phy_attach’? 698 | .attach = phy_sfp_attach, | ^~~~~~~~~~~~~~ | phy_attach ../drivers/net/phy/qcom/qca807x.c:699:19: error: ‘phy_sfp_detach’ undeclared here (not in a function); did you mean ‘phy_detach’? 699 | .detach = phy_sfp_detach, | ^~~~~~~~~~~~~~ | phy_detach ../drivers/net/phy/qcom/qca807x.c:702:24: error: ‘phy_sfp_connect_phy’ undeclared here (not in a function) 702 | .connect_phy = phy_sfp_connect_phy, | ^~~~~~~~~~~~~~~~~~~ ../drivers/net/phy/qcom/qca807x.c:703:27: error: ‘phy_sfp_disconnect_phy’ undeclared here (not in a function); did you mean ‘phy_disconnect’? 703 | .disconnect_phy = phy_sfp_disconnect_phy, | ^~~~~~~~~~~~~~~~~~~~~~ | phy_disconnect ../drivers/net/phy/qcom/qca807x.c: In function ‘qca807x_probe’: ../drivers/net/phy/qcom/qca807x.c:748:23: error: implicit declaration of function ‘phy_sfp_probe’ [-Wimplicit-function-declaration] 748 | ret = phy_sfp_probe(phydev, &qca807x_sfp_ops); | ^~~~~~~~~~~~~ make[7]: *** [../scripts/Makefile.build:207: drivers/net/phy/qcom/qca807x.o] Error 1 make[6]: *** [../scripts/Makefile.build:465: drivers/net/phy/qcom] Error 2 make[6]: *** Waiting for unfinished jobs.... ../drivers/net/phy/marvell-88x2222.c:523:34: warning: ‘mv2222_port_ops’ defined but not used [-Wunused-const-variable=] 523 | static const struct phy_port_ops mv2222_port_ops = { | ^~~~~~~~~~~~~~~ make[5]: *** [../scripts/Makefile.build:465: drivers/net/phy] Error 2 make[5]: *** Waiting for unfinished jobs.... ../drivers/net/usb/lan78xx.c: In function ‘lan7801_phy_init’: ../drivers/net/usb/lan78xx.c:2514:13: warning: variable ‘ret’ set but not used [-Wunused-but-set-variable] 2514 | int ret; | ^~~ make[4]: *** [../scripts/Makefile.build:465: drivers/net] Error 2 make[3]: *** [../scripts/Makefile.build:465: drivers] Error 2 make[2]: *** [/home/nipa/net-next/wt-0/Makefile:1994: .] Error 2 make[1]: *** [/home/nipa/net-next/wt-0/Makefile:251: __sub-make] Error 2 make: *** [Makefile:251: __sub-make] Error 2 ../drivers/net/phy/qcom/qca807x.c:698:19: error: ‘phy_sfp_attach’ undeclared here (not in a function); did you mean ‘phy_attach’? 698 | .attach = phy_sfp_attach, | ^~~~~~~~~~~~~~ | phy_attach ../drivers/net/phy/qcom/qca807x.c:699:19: error: ‘phy_sfp_detach’ undeclared here (not in a function); did you mean ‘phy_detach’? 699 | .detach = phy_sfp_detach, | ^~~~~~~~~~~~~~ | phy_detach ../drivers/net/phy/qcom/qca807x.c:702:24: error: ‘phy_sfp_connect_phy’ undeclared here (not in a function) 702 | .connect_phy = phy_sfp_connect_phy, | ^~~~~~~~~~~~~~~~~~~ ../drivers/net/phy/qcom/qca807x.c:703:27: error: ‘phy_sfp_disconnect_phy’ undeclared here (not in a function); did you mean ‘phy_disconnect’? 703 | .disconnect_phy = phy_sfp_disconnect_phy, | ^~~~~~~~~~~~~~~~~~~~~~ | phy_disconnect ../drivers/net/phy/qcom/qca807x.c: In function ‘qca807x_probe’: ../drivers/net/phy/qcom/qca807x.c:748:23: error: implicit declaration of function ‘phy_sfp_probe’ [-Wimplicit-function-declaration] 748 | ret = phy_sfp_probe(phydev, &qca807x_sfp_ops); | ^~~~~~~~~~~~~ make[7]: *** [../scripts/Makefile.build:207: drivers/net/phy/qcom/qca807x.o] Error 1 make[6]: *** [../scripts/Makefile.build:465: drivers/net/phy/qcom] Error 2 make[6]: *** Waiting for unfinished jobs.... In file included from ../include/linux/bitmap.h:8, from ../include/linux/ethtool.h:16, from ../drivers/net/phy/dp83822.c:7: ../drivers/net/phy/dp83822.c: In function ‘dp83822_attach_port’: ../drivers/net/phy/dp83822.c:916:27: error: ‘PHY_INTERFACE_MODE_100BASEFX’ undeclared (first use in this function); did you mean ‘PHY_INTERFACE_MODE_100BASEX’? 916 | __set_bit(PHY_INTERFACE_MODE_100BASEFX, interfaces); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../include/linux/bitops.h:44:32: note: in definition of macro ‘bitop’ 44 | ((__builtin_constant_p(nr) && \ | ^~ ../drivers/net/phy/dp83822.c:916:17: note: in expansion of macro ‘__set_bit’ 916 | __set_bit(PHY_INTERFACE_MODE_100BASEFX, interfaces); | ^~~~~~~~~ ../drivers/net/phy/dp83822.c:916:27: note: each undeclared identifier is reported only once for each function it appears in 916 | __set_bit(PHY_INTERFACE_MODE_100BASEFX, interfaces); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../include/linux/bitops.h:44:32: note: in definition of macro ‘bitop’ 44 | ((__builtin_constant_p(nr) && \ | ^~ ../drivers/net/phy/dp83822.c:916:17: note: in expansion of macro ‘__set_bit’ 916 | __set_bit(PHY_INTERFACE_MODE_100BASEFX, interfaces); | ^~~~~~~~~ ../drivers/net/phy/dp83822.c:916:57: error: ‘interfaces’ undeclared (first use in this function) 916 | __set_bit(PHY_INTERFACE_MODE_100BASEFX, interfaces); | ^~~~~~~~~~ ../include/linux/bitops.h:45:44: note: in definition of macro ‘bitop’ 45 | __builtin_constant_p((uintptr_t)(addr) != (uintptr_t)NULL) && \ | ^~~~ ../drivers/net/phy/dp83822.c:916:17: note: in expansion of macro ‘__set_bit’ 916 | __set_bit(PHY_INTERFACE_MODE_100BASEFX, interfaces); | ^~~~~~~~~ make[6]: *** [../scripts/Makefile.build:207: drivers/net/phy/dp83822.o] Error 1 make[5]: *** [../scripts/Makefile.build:465: drivers/net/phy] Error 2 make[4]: *** [../scripts/Makefile.build:465: drivers/net] Error 2 make[4]: *** Waiting for unfinished jobs.... make[3]: *** [../scripts/Makefile.build:465: drivers] Error 2 make[2]: *** [/home/nipa/net-next/wt-0/Makefile:1994: .] Error 2 make[1]: *** [/home/nipa/net-next/wt-0/Makefile:251: __sub-make] Error 2 make: *** [Makefile:251: __sub-make] Error 2 New errors added --- /tmp/tmp.dq5DjdbYp2 2025-02-07 17:33:37.173164440 -0800 +++ /tmp/tmp.ZPyS0kAo35 2025-02-07 17:33:50.649018973 -0800 @@ -23,3 +23,32 @@ -../drivers/net/phy/marvell-88x2222.c:523:34: warning: ‘mv2222_port_ops’ defined but not used [-Wunused-const-variable=] - 523 | static const struct phy_port_ops mv2222_port_ops = { - | ^~~~~~~~~~~~~~~ +In file included from ../include/linux/bitmap.h:8, + from ../include/linux/ethtool.h:16, + from ../drivers/net/phy/dp83822.c:7: +../drivers/net/phy/dp83822.c: In function ‘dp83822_attach_port’: +../drivers/net/phy/dp83822.c:916:27: error: ‘PHY_INTERFACE_MODE_100BASEFX’ undeclared (first use in this function); did you mean ‘PHY_INTERFACE_MODE_100BASEX’? + 916 | __set_bit(PHY_INTERFACE_MODE_100BASEFX, interfaces); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ +../include/linux/bitops.h:44:32: note: in definition of macro ‘bitop’ + 44 | ((__builtin_constant_p(nr) && \ + | ^~ +../drivers/net/phy/dp83822.c:916:17: note: in expansion of macro ‘__set_bit’ + 916 | __set_bit(PHY_INTERFACE_MODE_100BASEFX, interfaces); + | ^~~~~~~~~ +../drivers/net/phy/dp83822.c:916:27: note: each undeclared identifier is reported only once for each function it appears in + 916 | __set_bit(PHY_INTERFACE_MODE_100BASEFX, interfaces); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ +../include/linux/bitops.h:44:32: note: in definition of macro ‘bitop’ + 44 | ((__builtin_constant_p(nr) && \ + | ^~ +../drivers/net/phy/dp83822.c:916:17: note: in expansion of macro ‘__set_bit’ + 916 | __set_bit(PHY_INTERFACE_MODE_100BASEFX, interfaces); + | ^~~~~~~~~ +../drivers/net/phy/dp83822.c:916:57: error: ‘interfaces’ undeclared (first use in this function) + 916 | __set_bit(PHY_INTERFACE_MODE_100BASEFX, interfaces); + | ^~~~~~~~~~ +../include/linux/bitops.h:45:44: note: in definition of macro ‘bitop’ + 45 | __builtin_constant_p((uintptr_t)(addr) != (uintptr_t)NULL) && \ + | ^~~~ +../drivers/net/phy/dp83822.c:916:17: note: in expansion of macro ‘__set_bit’ + 916 | __set_bit(PHY_INTERFACE_MODE_100BASEFX, interfaces); + | ^~~~~~~~~ +make[6]: *** [../scripts/Makefile.build:207: drivers/net/phy/dp83822.o] Error 1 @@ -27,5 +55,0 @@ -make[5]: *** Waiting for unfinished jobs.... -../drivers/net/usb/lan78xx.c: In function ‘lan7801_phy_init’: -../drivers/net/usb/lan78xx.c:2514:13: warning: variable ‘ret’ set but not used [-Wunused-but-set-variable] - 2514 | int ret; - | ^~~ @@ -32,0 +57 @@ +make[4]: *** Waiting for unfinished jobs.... Per-file breakdown --- /tmp/tmp.HrcUq9Ccn9 2025-02-07 17:33:50.662018832 -0800 +++ /tmp/tmp.cTJoTF0gJL 2025-02-07 17:33:50.671018735 -0800 @@ -1 +1 @@ - 1 ../drivers/net/phy/marvell-88x2222.c + 2 ../drivers/net/phy/dp83822.c @@ -3 +2,0 @@ - 1 ../drivers/net/usb/lan78xx.c