In file included from ../include/linux/device/driver.h:21, from ../include/linux/device.h:32, from ../include/linux/dma-mapping.h:5, from ../include/linux/skbuff.h:28, from ../include/linux/if_ether.h:19, from ../include/linux/ethtool.h:18, from ../include/linux/linkmode.h:5, from ../include/linux/mii.h:13, from ../include/uapi/linux/mdio.h:15, from ../include/linux/mdio.h:9, from ../drivers/net/pcs/pcs-xilinx.c:34: ../drivers/net/pcs/pcs-xilinx.c:421:25: error: ‘xilinx_timer_of_match’ undeclared here (not in a function); did you mean ‘xilinx_pcs_of_match’? 421 | MODULE_DEVICE_TABLE(of, xilinx_timer_of_match); | ^~~~~~~~~~~~~~~~~~~~~ ../include/linux/module.h:250:15: note: in definition of macro ‘MODULE_DEVICE_TABLE’ 250 | extern typeof(name) __mod_device_table__##type##__##name \ | ^~~~ ../drivers/net/pcs/pcs-xilinx.c:463:21: error: redefinition of ‘axienet_xilinx_pcs_get’ 463 | struct phylink_pcs *axienet_xilinx_pcs_get(struct device *dev, | ^~~~~~~~~~~~~~~~~~~~~~ In file included from ../drivers/net/pcs/pcs-xilinx.c:37: ../include/linux/pcs-xilinx.h:30:1: note: previous definition of ‘axienet_xilinx_pcs_get’ with type ‘struct phylink_pcs *(struct device *, const long unsigned int *)’ 30 | axienet_xilinx_pcs_get(struct device *dev, const unsigned long *interfaces) | ^~~~~~~~~~~~~~~~~~~~~~ ../include/linux/module.h:250:21: error: ‘__mod_device_table__of__xilinx_timer_of_match’ aliased to undefined symbol ‘xilinx_timer_of_match’ 250 | extern typeof(name) __mod_device_table__##type##__##name \ | ^~~~~~~~~~~~~~~~~~~~ ../drivers/net/pcs/pcs-xilinx.c:421:1: note: in expansion of macro ‘MODULE_DEVICE_TABLE’ 421 | MODULE_DEVICE_TABLE(of, xilinx_timer_of_match); | ^~~~~~~~~~~~~~~~~~~ make[6]: *** [../scripts/Makefile.build:207: drivers/net/pcs/pcs-xilinx.o] Error 1 make[5]: *** [../scripts/Makefile.build:465: drivers/net/pcs] Error 2 make[5]: *** Waiting for unfinished jobs.... 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[3]: *** Waiting for unfinished jobs.... make[2]: *** [/home/nipa/net-next/wt-0/Makefile:1997: .] Error 2 make[1]: *** [/home/nipa/net-next/wt-0/Makefile:251: __sub-make] Error 2 make: *** [Makefile:251: __sub-make] Error 2 ld: drivers/net/pcs/core.o: in function `pcs_get_by_fwnode_compat.cold': core.c:(.text.unlikely+0xdc): undefined reference to `fwnode_mdio_find_device' make[3]: *** [../scripts/Makefile.vmlinux:77: vmlinux] Error 1 make[2]: *** [/home/nipa/net-next/wt-0/Makefile:1234: vmlinux] Error 2 make[2]: *** Waiting for unfinished jobs.... make[1]: *** [/home/nipa/net-next/wt-0/Makefile:251: __sub-make] Error 2 make: *** [Makefile:251: __sub-make] Error 2 In file included from ../include/linux/device/driver.h:21, from ../include/linux/device.h:32, from ../include/linux/dma-mapping.h:5, from ../include/linux/skbuff.h:28, from ../include/linux/if_ether.h:19, from ../include/linux/ethtool.h:18, from ../include/linux/linkmode.h:5, from ../include/linux/mii.h:13, from ../include/uapi/linux/mdio.h:15, from ../include/linux/mdio.h:9, from ../drivers/net/pcs/pcs-xilinx.c:34: ../drivers/net/pcs/pcs-xilinx.c:421:25: error: ‘xilinx_timer_of_match’ undeclared here (not in a function); did you mean ‘xilinx_pcs_of_match’? 421 | MODULE_DEVICE_TABLE(of, xilinx_timer_of_match); | ^~~~~~~~~~~~~~~~~~~~~ ../include/linux/module.h:250:15: note: in definition of macro ‘MODULE_DEVICE_TABLE’ 250 | extern typeof(name) __mod_device_table__##type##__##name \ | ^~~~ ../drivers/net/pcs/pcs-xilinx.c:463:21: error: redefinition of ‘axienet_xilinx_pcs_get’ 463 | struct phylink_pcs *axienet_xilinx_pcs_get(struct device *dev, | ^~~~~~~~~~~~~~~~~~~~~~ In file included from ../drivers/net/pcs/pcs-xilinx.c:37: ../include/linux/pcs-xilinx.h:30:1: note: previous definition of ‘axienet_xilinx_pcs_get’ with type ‘struct phylink_pcs *(struct device *, const long unsigned int *)’ 30 | axienet_xilinx_pcs_get(struct device *dev, const unsigned long *interfaces) | ^~~~~~~~~~~~~~~~~~~~~~ ../include/linux/module.h:250:21: error: ‘__mod_device_table__of__xilinx_timer_of_match’ aliased to undefined symbol ‘xilinx_timer_of_match’ 250 | extern typeof(name) __mod_device_table__##type##__##name \ | ^~~~~~~~~~~~~~~~~~~~ ../drivers/net/pcs/pcs-xilinx.c:421:1: note: in expansion of macro ‘MODULE_DEVICE_TABLE’ 421 | MODULE_DEVICE_TABLE(of, xilinx_timer_of_match); | ^~~~~~~~~~~~~~~~~~~ make[6]: *** [../scripts/Makefile.build:207: drivers/net/pcs/pcs-xilinx.o] Error 1 make[5]: *** [../scripts/Makefile.build:465: drivers/net/pcs] Error 2 make[5]: *** Waiting for unfinished jobs.... 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[3]: *** Waiting for unfinished jobs.... make[2]: *** [/home/nipa/net-next/wt-0/Makefile:1997: .] 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.7OaZFB9eYk 2025-04-03 13:11:57.941420070 -0700 +++ /tmp/tmp.gpom0ZY6Zt 2025-04-03 13:13:25.383259399 -0700 @@ -1,5 +1,38 @@ -ld: drivers/net/pcs/core.o: in function `pcs_get_by_fwnode_compat.cold': -core.c:(.text.unlikely+0xdc): undefined reference to `fwnode_mdio_find_device' -make[3]: *** [../scripts/Makefile.vmlinux:77: vmlinux] Error 1 -make[2]: *** [/home/nipa/net-next/wt-0/Makefile:1234: vmlinux] Error 2 -make[2]: *** Waiting for unfinished jobs.... +In file included from ../include/linux/device/driver.h:21, + from ../include/linux/device.h:32, + from ../include/linux/dma-mapping.h:5, + from ../include/linux/skbuff.h:28, + from ../include/linux/if_ether.h:19, + from ../include/linux/ethtool.h:18, + from ../include/linux/linkmode.h:5, + from ../include/linux/mii.h:13, + from ../include/uapi/linux/mdio.h:15, + from ../include/linux/mdio.h:9, + from ../drivers/net/pcs/pcs-xilinx.c:34: +../drivers/net/pcs/pcs-xilinx.c:421:25: error: ‘xilinx_timer_of_match’ undeclared here (not in a function); did you mean ‘xilinx_pcs_of_match’? + 421 | MODULE_DEVICE_TABLE(of, xilinx_timer_of_match); + | ^~~~~~~~~~~~~~~~~~~~~ +../include/linux/module.h:250:15: note: in definition of macro ‘MODULE_DEVICE_TABLE’ + 250 | extern typeof(name) __mod_device_table__##type##__##name \ + | ^~~~ +../drivers/net/pcs/pcs-xilinx.c:463:21: error: redefinition of ‘axienet_xilinx_pcs_get’ + 463 | struct phylink_pcs *axienet_xilinx_pcs_get(struct device *dev, + | ^~~~~~~~~~~~~~~~~~~~~~ +In file included from ../drivers/net/pcs/pcs-xilinx.c:37: +../include/linux/pcs-xilinx.h:30:1: note: previous definition of ‘axienet_xilinx_pcs_get’ with type ‘struct phylink_pcs *(struct device *, const long unsigned int *)’ + 30 | axienet_xilinx_pcs_get(struct device *dev, const unsigned long *interfaces) + | ^~~~~~~~~~~~~~~~~~~~~~ +../include/linux/module.h:250:21: error: ‘__mod_device_table__of__xilinx_timer_of_match’ aliased to undefined symbol ‘xilinx_timer_of_match’ + 250 | extern typeof(name) __mod_device_table__##type##__##name \ + | ^~~~~~~~~~~~~~~~~~~~ +../drivers/net/pcs/pcs-xilinx.c:421:1: note: in expansion of macro ‘MODULE_DEVICE_TABLE’ + 421 | MODULE_DEVICE_TABLE(of, xilinx_timer_of_match); + | ^~~~~~~~~~~~~~~~~~~ +make[6]: *** [../scripts/Makefile.build:207: drivers/net/pcs/pcs-xilinx.o] Error 1 +make[5]: *** [../scripts/Makefile.build:465: drivers/net/pcs] Error 2 +make[5]: *** Waiting for unfinished jobs.... +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[3]: *** Waiting for unfinished jobs.... +make[2]: *** [/home/nipa/net-next/wt-0/Makefile:1997: .] Error 2 Per-file breakdown --- /tmp/tmp.Z6dDNOc1Eq 2025-04-03 13:13:25.423812695 -0700 +++ /tmp/tmp.DyeNUVkGj7 2025-04-03 13:13:25.445812513 -0700 @@ -0,0 +1,2 @@ + 2 ../drivers/net/pcs/pcs-xilinx.c + 1 ../include/linux/module.h