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.... ../drivers/net/ethernet/cadence/macb_main.c: In function ‘macb_pcs_get_state’: ../drivers/net/ethernet/cadence/macb_main.c:557:9: error: too few arguments to function ‘phylink_mii_c22_pcs_decode_state’ 557 | phylink_mii_c22_pcs_decode_state(state, gem_readl(bp, PCSSTS), | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../drivers/net/ethernet/cadence/macb_main.c:25: ../include/linux/phylink.h:800:6: note: declared here 800 | void phylink_mii_c22_pcs_decode_state(struct phylink_link_state *state, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../drivers/net/ethernet/cadence/macb_main.c: At top level: ../drivers/net/ethernet/cadence/macb_main.c:699:26: error: initialization of ‘void (*)(struct phylink_pcs *, unsigned int, struct phylink_link_state *)’ from incompatible pointer type ‘void (*)(struct phylink_pcs *, struct phylink_link_state *)’ [-Wincompatible-pointer-types] 699 | .pcs_get_state = macb_pcs_get_state, | ^~~~~~~~~~~~~~~~~~ ../drivers/net/ethernet/cadence/macb_main.c:699:26: note: (near initialization for ‘macb_phylink_pcs_ops.pcs_get_state’) make[7]: *** [../scripts/Makefile.build:207: drivers/net/ethernet/cadence/macb_main.o] Error 1 make[6]: *** [../scripts/Makefile.build:465: drivers/net/ethernet/cadence] Error 2 make[5]: *** [../scripts/Makefile.build:465: drivers/net/ethernet] 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:1997: .] Error 2 make[1]: *** [/home/nipa/net-next/wt-0/Makefile:251: __sub-make] Error 2 make: *** [Makefile:251: __sub-make] Error 2 ../kernel/sys.c:1114:32: warning: incorrect type in argument 1 (different address spaces) ../kernel/sys.c:1114:32: expected struct task_struct *p1 ../kernel/sys.c:1114:32: got struct task_struct [noderef] __rcu *real_parent ../kernel/sys.c:1864:33: warning: context imbalance in 'getrusage' - different lock contexts for basic block ../drivers/base/firmware_loader/main.c:229:9: warning: context imbalance in 'free_fw_priv' - wrong count at exit ../drivers/net/ethernet/cadence/macb_main.c: In function ‘gem_get_ethtool_strings’: ../drivers/net/ethernet/cadence/macb_main.c:3188:77: warning: ‘%s’ directive output may be truncated writing up to 239 bytes into a region of size between 19 and 29 [-Wformat-truncation=] 3188 | snprintf(stat_string, ETH_GSTRING_LEN, "q%d_%s", | ^~ ../drivers/net/ethernet/cadence/macb_main.c:3188:33: note: ‘snprintf’ output between 4 and 253 bytes into a destination of size 32 3188 | snprintf(stat_string, ETH_GSTRING_LEN, "q%d_%s", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 3189 | q, queue_statistics[i].stat_string); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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.... ../drivers/net/ethernet/cadence/macb_main.c:281:16: warning: incorrect type in assignment (different base types) ../drivers/net/ethernet/cadence/macb_main.c:281:16: expected unsigned int [usertype] bottom ../drivers/net/ethernet/cadence/macb_main.c:281:16: got restricted __le32 [usertype] ../drivers/net/ethernet/cadence/macb_main.c:283:13: warning: incorrect type in assignment (different base types) ../drivers/net/ethernet/cadence/macb_main.c:283:13: expected unsigned short [usertype] top ../drivers/net/ethernet/cadence/macb_main.c:283:13: got restricted __le16 [usertype] ../drivers/net/ethernet/cadence/macb_main.c:3651:39: warning: restricted __be32 degrades to integer ../drivers/net/ethernet/cadence/macb_main.c:3656:39: warning: restricted __be32 degrades to integer ../drivers/net/ethernet/cadence/macb_main.c:3661:40: warning: restricted __be16 degrades to integer ../drivers/net/ethernet/cadence/macb_main.c:3661:69: warning: restricted __be16 degrades to integer ../drivers/net/ethernet/cadence/macb_main.c:3686:20: warning: restricted __be32 degrades to integer ../drivers/net/ethernet/cadence/macb_main.c:3690:20: warning: incorrect type in assignment (different base types) ../drivers/net/ethernet/cadence/macb_main.c:3690:20: expected unsigned int [assigned] [usertype] w0 ../drivers/net/ethernet/cadence/macb_main.c:3690:20: got restricted __be32 [usertype] ip4src ../drivers/net/ethernet/cadence/macb_main.c:3700:20: warning: restricted __be32 degrades to integer ../drivers/net/ethernet/cadence/macb_main.c:3704:20: warning: incorrect type in assignment (different base types) ../drivers/net/ethernet/cadence/macb_main.c:3704:20: expected unsigned int [assigned] [usertype] w0 ../drivers/net/ethernet/cadence/macb_main.c:3704:20: got restricted __be32 [usertype] ip4dst ../drivers/net/ethernet/cadence/macb_main.c:3714:21: warning: restricted __be16 degrades to integer ../drivers/net/ethernet/cadence/macb_main.c:3714:50: warning: restricted __be16 degrades to integer ../drivers/net/ethernet/cadence/macb_main.c:3720:30: warning: restricted __be16 degrades to integer ../drivers/net/ethernet/cadence/macb_main.c:3721:30: warning: restricted __be16 degrades to integer ../drivers/net/ethernet/cadence/macb_main.c:3728:36: warning: restricted __be16 degrades to integer ../drivers/net/ethernet/cadence/macb_main.c:3729:38: warning: restricted __be16 degrades to integer ../drivers/net/ethernet/cadence/macb_main.c:3732:38: warning: restricted __be16 degrades to integer ../drivers/net/ethernet/cadence/macb_main.c:3768:9: warning: cast from restricted __be32 ../drivers/net/ethernet/cadence/macb_main.c:3768:9: warning: cast from restricted __be32 ../drivers/net/ethernet/cadence/macb_main.c:3822:25: warning: cast from restricted __be32 ../drivers/net/ethernet/cadence/macb_main.c:3822:25: warning: cast from restricted __be32 make[4]: *** [../scripts/Makefile.build:465: drivers/net] Error 2 make[4]: *** Waiting for unfinished jobs.... ../drivers/gpu/drm/amd/amdgpu/amdgpu_dev_coredump.c: note: in included file (through ../drivers/gpu/drm/amd/amdgpu/amdgpu_virt.h, ../drivers/gpu/drm/amd/amdgpu/amdgpu.h, ../drivers/gpu/drm/amd/amdgpu/amdgpu_dev_coredump.h): ../drivers/gpu/drm/amd/amdgpu/amdgv_sriovmsg.h:428:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" make[3]: *** [../scripts/Makefile.build:465: drivers] Error 2 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 ../kernel/sys.c:1114:32: warning: incorrect type in argument 1 (different address spaces) ../kernel/sys.c:1114:32: expected struct task_struct *p1 ../kernel/sys.c:1114:32: got struct task_struct [noderef] __rcu *real_parent ../kernel/sys.c:1864:33: warning: context imbalance in 'getrusage' - different lock contexts for basic block ../drivers/base/firmware_loader/main.c:229:9: warning: context imbalance in 'free_fw_priv' - wrong count at exit 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.... ../drivers/net/ethernet/cadence/macb_main.c: In function ‘macb_pcs_get_state’: ../drivers/net/ethernet/cadence/macb_main.c:557:9: error: too few arguments to function ‘phylink_mii_c22_pcs_decode_state’ 557 | phylink_mii_c22_pcs_decode_state(state, gem_readl(bp, PCSSTS), | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../drivers/net/ethernet/cadence/macb_main.c:25: ../include/linux/phylink.h:800:6: note: declared here 800 | void phylink_mii_c22_pcs_decode_state(struct phylink_link_state *state, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../drivers/net/ethernet/cadence/macb_main.c: At top level: ../drivers/net/ethernet/cadence/macb_main.c:699:26: error: initialization of ‘void (*)(struct phylink_pcs *, unsigned int, struct phylink_link_state *)’ from incompatible pointer type ‘void (*)(struct phylink_pcs *, struct phylink_link_state *)’ [-Wincompatible-pointer-types] 699 | .pcs_get_state = macb_pcs_get_state, | ^~~~~~~~~~~~~~~~~~ ../drivers/net/ethernet/cadence/macb_main.c:699:26: note: (near initialization for ‘macb_phylink_pcs_ops.pcs_get_state’) make[7]: *** [../scripts/Makefile.build:207: drivers/net/ethernet/cadence/macb_main.o] Error 1 make[6]: *** [../scripts/Makefile.build:465: drivers/net/ethernet/cadence] Error 2 make[6]: *** Waiting for unfinished jobs.... make[5]: *** [../scripts/Makefile.build:465: drivers/net/ethernet] Error 2 make[4]: *** [../scripts/Makefile.build:465: drivers/net] Error 2 make[4]: *** Waiting for unfinished jobs.... ../drivers/gpu/drm/amd/amdgpu/amdgpu_dev_coredump.c: note: in included file (through ../drivers/gpu/drm/amd/amdgpu/amdgpu_virt.h, ../drivers/gpu/drm/amd/amdgpu/amdgpu.h, ../drivers/gpu/drm/amd/amdgpu/amdgpu_dev_coredump.h): ../drivers/gpu/drm/amd/amdgpu/amdgv_sriovmsg.h:428:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" make[3]: *** [../scripts/Makefile.build:465: drivers] Error 2 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