========== build_clang - FAILED ../drivers/net/pcs/pcs-xilinx.c:313:2: warning: label at end of compound statement is a C23 extension [-Wc23-extensions] 313 | } | ^ ../drivers/net/pcs/pcs-xilinx.c:421:25: error: use of undeclared identifier 'xilinx_timer_of_match'; did you mean 'xilinx_pcs_of_match'? 421 | MODULE_DEVICE_TABLE(of, xilinx_timer_of_match); | ^~~~~~~~~~~~~~~~~~~~~ | xilinx_pcs_of_match ../include/linux/module.h:250:15: note: expanded from macro 'MODULE_DEVICE_TABLE' 250 | extern typeof(name) __mod_device_table__##type##__##name \ | ^ ../drivers/net/pcs/pcs-xilinx.c:417:34: note: 'xilinx_pcs_of_match' declared here 417 | static const struct of_device_id xilinx_pcs_of_match[] = { | ^ ../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, | ^ ../include/linux/pcs-xilinx.h:30:1: note: previous definition is here 30 | axienet_xilinx_pcs_get(struct device *dev, const unsigned long *interfaces) | ^ 1 warning and 2 errors generated. 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:558:33: error: too few arguments to function call, expected 4, have 3 557 | phylink_mii_c22_pcs_decode_state(state, gem_readl(bp, PCSSTS), | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 558 | gem_readl(bp, PCSANLPBASE)); | ^ ../include/linux/phylink.h:800:6: note: 'phylink_mii_c22_pcs_decode_state' declared here 800 | void phylink_mii_c22_pcs_decode_state(struct phylink_link_state *state, | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 801 | unsigned int neg_mode, u16 bmsr, u16 lpa); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../drivers/net/ethernet/cadence/macb_main.c:699:19: error: incompatible function pointer types initializing 'void (*)(struct phylink_pcs *, unsigned int, struct phylink_link_state *)' with an expression of type 'void (struct phylink_pcs *, struct phylink_link_state *)' [-Wincompatible-function-pointer-types] 699 | .pcs_get_state = macb_pcs_get_state, | ^~~~~~~~~~~~~~~~~~ 2 errors generated. 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.... 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 ../drivers/net/pcs/pcs-xilinx.c:313:2: warning: label at end of compound statement is a C23 extension [-Wc23-extensions] 313 | } | ^ ../drivers/net/pcs/pcs-xilinx.c:421:25: error: use of undeclared identifier 'xilinx_timer_of_match'; did you mean 'xilinx_pcs_of_match'? 421 | MODULE_DEVICE_TABLE(of, xilinx_timer_of_match); | ^~~~~~~~~~~~~~~~~~~~~ | xilinx_pcs_of_match ../include/linux/module.h:250:15: note: expanded from macro 'MODULE_DEVICE_TABLE' 250 | extern typeof(name) __mod_device_table__##type##__##name \ | ^ ../drivers/net/pcs/pcs-xilinx.c:417:34: note: 'xilinx_pcs_of_match' declared here 417 | static const struct of_device_id xilinx_pcs_of_match[] = { | ^ ../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, | ^ ../include/linux/pcs-xilinx.h:30:1: note: previous definition is here 30 | axienet_xilinx_pcs_get(struct device *dev, const unsigned long *interfaces) | ^ 1 warning and 2 errors generated. 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/nvme/target/nvmet.o: warning: objtool: nvmet_ctrl_state_show() falls through to next function __cfi_nvmet_ctrl_host_traddr_open() 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 ../drivers/net/pcs/pcs-xilinx.c:313:2: warning: label at end of compound statement is a C23 extension [-Wc23-extensions] 313 | } | ^ ../drivers/net/pcs/pcs-xilinx.c:421:25: error: use of undeclared identifier 'xilinx_timer_of_match'; did you mean 'xilinx_pcs_of_match'? 421 | MODULE_DEVICE_TABLE(of, xilinx_timer_of_match); | ^~~~~~~~~~~~~~~~~~~~~ | xilinx_pcs_of_match ../include/linux/module.h:250:15: note: expanded from macro 'MODULE_DEVICE_TABLE' 250 | extern typeof(name) __mod_device_table__##type##__##name \ | ^ ../drivers/net/pcs/pcs-xilinx.c:417:34: note: 'xilinx_pcs_of_match' declared here 417 | static const struct of_device_id xilinx_pcs_of_match[] = { | ^ ../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, | ^ ../include/linux/pcs-xilinx.h:30:1: note: previous definition is here 30 | axienet_xilinx_pcs_get(struct device *dev, const unsigned long *interfaces) | ^ 1 warning and 2 errors generated. 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/nvme/target/nvmet.o: warning: objtool: nvmet_ctrl_state_show() falls through to next function __cfi_nvmet_ctrl_host_traddr_open() ../drivers/net/ethernet/cadence/macb_main.c:558:33: error: too few arguments to function call, expected 4, have 3 557 | phylink_mii_c22_pcs_decode_state(state, gem_readl(bp, PCSSTS), | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 558 | gem_readl(bp, PCSANLPBASE)); | ^ ../include/linux/phylink.h:800:6: note: 'phylink_mii_c22_pcs_decode_state' declared here 800 | void phylink_mii_c22_pcs_decode_state(struct phylink_link_state *state, | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 801 | unsigned int neg_mode, u16 bmsr, u16 lpa); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../drivers/net/ethernet/cadence/macb_main.c:699:19: error: incompatible function pointer types initializing 'void (*)(struct phylink_pcs *, unsigned int, struct phylink_link_state *)' with an expression of type 'void (struct phylink_pcs *, struct phylink_link_state *)' [-Wincompatible-function-pointer-types] 699 | .pcs_get_state = macb_pcs_get_state, | ^~~~~~~~~~~~~~~~~~ 2 errors generated. 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.... 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 New errors added --- /tmp/tmp.yZttnX6pzl 2025-04-03 14:21:49.827370529 -0700 +++ /tmp/tmp.3pMNmI32y2 2025-04-03 14:22:17.480878278 -0700 @@ -24,0 +25,18 @@ +../drivers/net/ethernet/cadence/macb_main.c:558:33: error: too few arguments to function call, expected 4, have 3 + 557 | phylink_mii_c22_pcs_decode_state(state, gem_readl(bp, PCSSTS), + | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 558 | gem_readl(bp, PCSANLPBASE)); + | ^ +../include/linux/phylink.h:800:6: note: 'phylink_mii_c22_pcs_decode_state' declared here + 800 | void phylink_mii_c22_pcs_decode_state(struct phylink_link_state *state, + | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 801 | unsigned int neg_mode, u16 bmsr, u16 lpa); + | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +../drivers/net/ethernet/cadence/macb_main.c:699:19: error: incompatible function pointer types initializing 'void (*)(struct phylink_pcs *, unsigned int, struct phylink_link_state *)' with an expression of type 'void (struct phylink_pcs *, struct phylink_link_state *)' [-Wincompatible-function-pointer-types] + 699 | .pcs_get_state = macb_pcs_get_state, + | ^~~~~~~~~~~~~~~~~~ +2 errors generated. +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 @@ -28 +45,0 @@ -make[3]: *** Waiting for unfinished jobs.... Per-file breakdown --- /tmp/tmp.Zkrij9aMqR 2025-04-03 14:22:17.489736597 -0700 +++ /tmp/tmp.F2qFw4BdEG 2025-04-03 14:22:17.490878192 -0700 @@ -0,0 +1 @@ + 2 ../drivers/net/ethernet/cadence/macb_main.c