../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 = { | ^~~~~~~~~~~~~~~ In file included from ../drivers/net/usb/asix.h:28, from ../drivers/net/usb/ax88172a.c:15: ../drivers/net/usb/ax88172a.c: In function ‘ax88172a_reset’: ../include/linux/phy.h:312:20: warning: ‘%s’ directive output may be truncated writing up to 60 bytes into a region of size 20 [-Wformat-truncation=] 312 | #define PHY_ID_FMT "%s:%02x" | ^~~~~~~~~ ../drivers/net/usb/ax88172a.c:311:38: note: in expansion of macro ‘PHY_ID_FMT’ 311 | snprintf(priv->phy_name, 20, PHY_ID_FMT, | ^~~~~~~~~~ ../include/linux/phy.h:312:21: note: format string is defined here 312 | #define PHY_ID_FMT "%s:%02x" | ^~ ../include/linux/phy.h:312:20: note: directive argument in the range [0, 65535] 312 | #define PHY_ID_FMT "%s:%02x" | ^~~~~~~~~ ../drivers/net/usb/ax88172a.c:311:38: note: in expansion of macro ‘PHY_ID_FMT’ 311 | snprintf(priv->phy_name, 20, PHY_ID_FMT, | ^~~~~~~~~~ ../drivers/net/usb/ax88172a.c:311:9: note: ‘snprintf’ output between 4 and 66 bytes into a destination of size 20 311 | snprintf(priv->phy_name, 20, PHY_ID_FMT, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 312 | priv->mdio->id, priv->phy_addr); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../drivers/net/usb/smsc75xx.c:2172:29: warning: cast to restricted __be16 ../drivers/net/usb/smsc75xx.c:2172:27: warning: incorrect type in assignment (different base types) ../drivers/net/usb/smsc75xx.c:2172:27: expected restricted __wsum [usertype] csum ../drivers/net/usb/smsc75xx.c:2172:27: got unsigned short [usertype] 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; | ^~~ ../drivers/net/usb/lan78xx.c:3641:29: warning: cast to restricted __be16 ../drivers/net/usb/lan78xx.c:3641:27: warning: incorrect type in assignment (different base types) ../drivers/net/usb/lan78xx.c:3641:27: expected restricted __wsum [usertype] csum ../drivers/net/usb/lan78xx.c:3641:27: got unsigned short [usertype] 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 ../drivers/net/phy/mscc/mscc_main.c: In function ‘vsc85xx_dt_led_modes_get.constprop’: ../drivers/net/phy/mscc/mscc_main.c:451:64: warning: ‘sprintf’ may write a terminating nul past the end of the destination [-Wformat-overflow=] 451 | ret = sprintf(led_dt_prop, "vsc8531,led-%d-mode", i); | ^ ../drivers/net/phy/mscc/mscc_main.c:451:23: note: ‘sprintf’ output between 19 and 29 bytes into a destination of size 28 451 | ret = sprintf(led_dt_prop, "vsc8531,led-%d-mode", i); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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