tree: https://gitee.com/openeuler/kernel.git openEuler-1.0-LTS head: 4ba26291c36f420273a2546b25d2c0db3115d226 commit: e9f0b33ca1fa178f87823d17762a4d2f9296efd1 [15452/22498] net: txgbe: Add support for Netswift 10G NIC config: x86_64-buildonly-randconfig-003-20240525 (https://download.01.org/0day-ci/archive/20240526/202405261446.vSg0xorn-lkp@i...) compiler: gcc-13 (Ubuntu 13.2.0-4ubuntu3) 13.2.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240526/202405261446.vSg0xorn-lkp@i...)
If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags | Reported-by: kernel test robot lkp@intel.com | Closes: https://lore.kernel.org/oe-kbuild-all/202405261446.vSg0xorn-lkp@intel.com/
All warnings (new ones prefixed by >>):
In file included from include/linux/sctp.h:57, from drivers/net/ethernet/netswift/txgbe/txgbe.h:28, from drivers/net/ethernet/netswift/txgbe/txgbe_main.c:45: include/uapi/linux/sctp.h:390:1: warning: alignment 4 of 'struct sctp_paddr_change' is less than 8 [-Wpacked-not-aligned] 390 | } __attribute__((packed, aligned(4))); | ^ include/uapi/linux/sctp.h:719:1: warning: alignment 4 of 'struct sctp_setpeerprim' is less than 8 [-Wpacked-not-aligned] 719 | } __attribute__((packed, aligned(4))); | ^ include/uapi/linux/sctp.h:718:33: warning: 'sspp_addr' offset 4 in 'struct sctp_setpeerprim' isn't aligned to 8 [-Wpacked-not-aligned] 718 | struct sockaddr_storage sspp_addr; | ^~~~~~~~~ include/uapi/linux/sctp.h:732:1: warning: alignment 4 of 'struct sctp_prim' is less than 8 [-Wpacked-not-aligned] 732 | } __attribute__((packed, aligned(4))); | ^ include/uapi/linux/sctp.h:731:33: warning: 'ssp_addr' offset 4 in 'struct sctp_prim' isn't aligned to 8 [-Wpacked-not-aligned] 731 | struct sockaddr_storage ssp_addr; | ^~~~~~~~ include/uapi/linux/sctp.h:783:1: warning: alignment 4 of 'struct sctp_paddrparams' is less than 8 [-Wpacked-not-aligned] 783 | } __attribute__((packed, aligned(4))); | ^ include/uapi/linux/sctp.h:775:33: warning: 'spp_address' offset 4 in 'struct sctp_paddrparams' isn't aligned to 8 [-Wpacked-not-aligned] 775 | struct sockaddr_storage spp_address; | ^~~~~~~~~~~ include/uapi/linux/sctp.h:896:1: warning: alignment 4 of 'struct sctp_paddrinfo' is less than 8 [-Wpacked-not-aligned] 896 | } __attribute__((packed, aligned(4))); | ^ include/uapi/linux/sctp.h:890:33: warning: 'spinfo_address' offset 4 in 'struct sctp_paddrinfo' isn't aligned to 8 [-Wpacked-not-aligned] 890 | struct sockaddr_storage spinfo_address; | ^~~~~~~~~~~~~~ drivers/net/ethernet/netswift/txgbe/txgbe.h: In function 'txgbe_misc_isb': drivers/net/ethernet/netswift/txgbe/txgbe.h:871:13: warning: variable 'cur_diff' set but not used [-Wunused-but-set-variable] 871 | u32 cur_diff = 0; | ^~~~~~~~ drivers/net/ethernet/netswift/txgbe/txgbe_main.c: At top level: drivers/net/ethernet/netswift/txgbe/txgbe_main.c:170:6: warning: no previous prototype for 'txgbe_service_event_schedule' [-Wmissing-prototypes] 170 | void txgbe_service_event_schedule(struct txgbe_adapter *adapter) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/net/ethernet/netswift/txgbe/txgbe_main.c: In function 'txgbe_tx_timeout': drivers/net/ethernet/netswift/txgbe/txgbe_main.c:433:14: warning: variable 'real_tx_hang' set but not used [-Wunused-but-set-variable] 433 | bool real_tx_hang = false; | ^~~~~~~~~~~~ drivers/net/ethernet/netswift/txgbe/txgbe_main.c: At top level: drivers/net/ethernet/netswift/txgbe/txgbe_main.c:2634:6: warning: no previous prototype for 'txgbe_disable_tx_queue' [-Wmissing-prototypes] 2634 | void txgbe_disable_tx_queue(struct txgbe_adapter *adapter, | ^~~~~~~~~~~~~~~~~~~~~~ drivers/net/ethernet/netswift/txgbe/txgbe_main.c:3299:5: warning: no previous prototype for 'txgbe_add_cloud_switcher' [-Wmissing-prototypes] 3299 | int txgbe_add_cloud_switcher(struct txgbe_adapter *adapter, u32 key, u16 pool) | ^~~~~~~~~~~~~~~~~~~~~~~~ drivers/net/ethernet/netswift/txgbe/txgbe_main.c:3315:5: warning: no previous prototype for 'txgbe_del_cloud_switcher' [-Wmissing-prototypes] 3315 | int txgbe_del_cloud_switcher(struct txgbe_adapter *adapter, u32 key, u16 pool) | ^~~~~~~~~~~~~~~~~~~~~~~~ drivers/net/ethernet/netswift/txgbe/txgbe_main.c:3667:6: warning: no previous prototype for 'txgbe_configure_isb' [-Wmissing-prototypes] 3667 | void txgbe_configure_isb(struct txgbe_adapter *adapter) | ^~~~~~~~~~~~~~~~~~~ drivers/net/ethernet/netswift/txgbe/txgbe_main.c:3677:6: warning: no previous prototype for 'txgbe_configure_port' [-Wmissing-prototypes] 3677 | void txgbe_configure_port(struct txgbe_adapter *adapter) | ^~~~~~~~~~~~~~~~~~~~ drivers/net/ethernet/netswift/txgbe/txgbe_main.c:4219:6: warning: no previous prototype for 'txgbe_disable_device' [-Wmissing-prototypes] 4219 | void txgbe_disable_device(struct txgbe_adapter *adapter) | ^~~~~~~~~~~~~~~~~~~~ drivers/net/ethernet/netswift/txgbe/txgbe_main.c:4315:5: warning: no previous prototype for 'txgbe_init_shared_code' [-Wmissing-prototypes] 4315 | s32 txgbe_init_shared_code(struct txgbe_hw *hw) | ^~~~~~~~~~~~~~~~~~~~~~ drivers/net/ethernet/netswift/txgbe/txgbe_main.c:6697:5: warning: no previous prototype for 'txgbe_skb_pad_nonzero' [-Wmissing-prototypes] 6697 | int txgbe_skb_pad_nonzero(struct sk_buff *skb, int pad) | ^~~~~~~~~~~~~~~~~~~~~ drivers/net/ethernet/netswift/txgbe/txgbe_main.c:257: warning: Function parameter or member 'quiet' not described in 'txgbe_read_reg' drivers/net/ethernet/netswift/txgbe/txgbe_main.c:1802: warning: Function parameter or member 'queues' not described in 'txgbe_irq_enable' drivers/net/ethernet/netswift/txgbe/txgbe_main.c:1802: warning: Function parameter or member 'flush' not described in 'txgbe_irq_enable' drivers/net/ethernet/netswift/txgbe/txgbe_main.c:2246: warning: Function parameter or member 'adapter' not described in 'txgbe_configure_msi_and_legacy' drivers/net/ethernet/netswift/txgbe/txgbe_main.c:2766: warning: Function parameter or member 'adapter' not described in 'txgbe_configure_bridge_mode' drivers/net/ethernet/netswift/txgbe/txgbe_main.c:3279: warning: Function parameter or member 'pool' not described in 'txgbe_write_uc_addr_list' drivers/net/ethernet/netswift/txgbe/txgbe_main.c:4333: warning: cannot understand function prototype: 'const u32 def_rss_key[10] = ' drivers/net/ethernet/netswift/txgbe/txgbe_main.c:5242: warning: Function parameter or member 'adapter' not described in 'txgbe_fdir_reinit_subtask' drivers/net/ethernet/netswift/txgbe/txgbe_main.c:5284: warning: Function parameter or member 'adapter' not described in 'txgbe_check_hang_subtask' drivers/net/ethernet/netswift/txgbe/txgbe_main.c:5307: warning: Function parameter or member 'adapter' not described in 'txgbe_watchdog_update_link' drivers/net/ethernet/netswift/txgbe/txgbe_main.c:5391: warning: Function parameter or member 'adapter' not described in 'txgbe_watchdog_link_is_up' drivers/net/ethernet/netswift/txgbe/txgbe_main.c:5437: warning: Function parameter or member 'adapter' not described in 'txgbe_watchdog_link_is_down' drivers/net/ethernet/netswift/txgbe/txgbe_main.c:5510: warning: Function parameter or member 'adapter' not described in 'txgbe_watchdog_flush_tx' drivers/net/ethernet/netswift/txgbe/txgbe_main.c:5531: warning: Function parameter or member 'adapter' not described in 'txgbe_watchdog_subtask' drivers/net/ethernet/netswift/txgbe/txgbe_main.c:5570: warning: Function parameter or member 'adapter' not described in 'txgbe_sfp_detection_subtask' drivers/net/ethernet/netswift/txgbe/txgbe_main.c:5641: warning: Function parameter or member 'adapter' not described in 'txgbe_sfp_link_config_subtask' drivers/net/ethernet/netswift/txgbe/txgbe_main.c:5725: warning: Function parameter or member 't' not described in 'txgbe_service_timer' drivers/net/ethernet/netswift/txgbe/txgbe_main.c:5725: warning: Excess function parameter 'data' description in 'txgbe_service_timer' drivers/net/ethernet/netswift/txgbe/txgbe_main.c:6921: warning: Function parameter or member 'dev' not described in 'txgbe_add_sanmac_netdev' drivers/net/ethernet/netswift/txgbe/txgbe_main.c:6921: warning: Excess function parameter 'netdev' description in 'txgbe_add_sanmac_netdev' drivers/net/ethernet/netswift/txgbe/txgbe_main.c:6946: warning: Function parameter or member 'dev' not described in 'txgbe_del_sanmac_netdev' drivers/net/ethernet/netswift/txgbe/txgbe_main.c:6946: warning: Excess function parameter 'netdev' description in 'txgbe_del_sanmac_netdev' drivers/net/ethernet/netswift/txgbe/txgbe_main.c:7041: warning: Function parameter or member 'dev' not described in 'txgbe_setup_tc' drivers/net/ethernet/netswift/txgbe/txgbe_main.c:7041: warning: Excess function parameter 'netdev' description in 'txgbe_setup_tc' drivers/net/ethernet/netswift/txgbe/txgbe_main.c:7469: warning: Excess function parameter 'device_id' description in 'txgbe_wol_supported' drivers/net/ethernet/netswift/txgbe/txgbe_main.c:7469: warning: Excess function parameter 'subdev_id' description in 'txgbe_wol_supported'
drivers/net/ethernet/netswift/txgbe/txgbe_main.o: warning: objtool: missing symbol for section .init.text
-- In file included from include/linux/sctp.h:57, from drivers/net/ethernet/netswift/txgbe/txgbe.h:28, from drivers/net/ethernet/netswift/txgbe/txgbe_mbx.c:25: include/uapi/linux/sctp.h:390:1: warning: alignment 4 of 'struct sctp_paddr_change' is less than 8 [-Wpacked-not-aligned] 390 | } __attribute__((packed, aligned(4))); | ^ include/uapi/linux/sctp.h:719:1: warning: alignment 4 of 'struct sctp_setpeerprim' is less than 8 [-Wpacked-not-aligned] 719 | } __attribute__((packed, aligned(4))); | ^ include/uapi/linux/sctp.h:718:33: warning: 'sspp_addr' offset 4 in 'struct sctp_setpeerprim' isn't aligned to 8 [-Wpacked-not-aligned] 718 | struct sockaddr_storage sspp_addr; | ^~~~~~~~~ include/uapi/linux/sctp.h:732:1: warning: alignment 4 of 'struct sctp_prim' is less than 8 [-Wpacked-not-aligned] 732 | } __attribute__((packed, aligned(4))); | ^ include/uapi/linux/sctp.h:731:33: warning: 'ssp_addr' offset 4 in 'struct sctp_prim' isn't aligned to 8 [-Wpacked-not-aligned] 731 | struct sockaddr_storage ssp_addr; | ^~~~~~~~ include/uapi/linux/sctp.h:783:1: warning: alignment 4 of 'struct sctp_paddrparams' is less than 8 [-Wpacked-not-aligned] 783 | } __attribute__((packed, aligned(4))); | ^ include/uapi/linux/sctp.h:775:33: warning: 'spp_address' offset 4 in 'struct sctp_paddrparams' isn't aligned to 8 [-Wpacked-not-aligned] 775 | struct sockaddr_storage spp_address; | ^~~~~~~~~~~ include/uapi/linux/sctp.h:896:1: warning: alignment 4 of 'struct sctp_paddrinfo' is less than 8 [-Wpacked-not-aligned] 896 | } __attribute__((packed, aligned(4))); | ^ include/uapi/linux/sctp.h:890:33: warning: 'spinfo_address' offset 4 in 'struct sctp_paddrinfo' isn't aligned to 8 [-Wpacked-not-aligned] 890 | struct sockaddr_storage spinfo_address; | ^~~~~~~~~~~~~~ drivers/net/ethernet/netswift/txgbe/txgbe.h: In function 'txgbe_misc_isb': drivers/net/ethernet/netswift/txgbe/txgbe.h:871:13: warning: variable 'cur_diff' set but not used [-Wunused-but-set-variable] 871 | u32 cur_diff = 0; | ^~~~~~~~ drivers/net/ethernet/netswift/txgbe/txgbe_mbx.c: At top level: drivers/net/ethernet/netswift/txgbe/txgbe_mbx.c:132:5: warning: no previous prototype for 'txgbe_poll_for_msg' [-Wmissing-prototypes] 132 | int txgbe_poll_for_msg(struct txgbe_hw *hw, u16 mbx_id) | ^~~~~~~~~~~~~~~~~~ drivers/net/ethernet/netswift/txgbe/txgbe_mbx.c:162:5: warning: no previous prototype for 'txgbe_poll_for_ack' [-Wmissing-prototypes] 162 | int txgbe_poll_for_ack(struct txgbe_hw *hw, u16 mbx_id) | ^~~~~~~~~~~~~~~~~~ drivers/net/ethernet/netswift/txgbe/txgbe_mbx.c:185:5: warning: no previous prototype for 'txgbe_check_for_bit_pf' [-Wmissing-prototypes] 185 | int txgbe_check_for_bit_pf(struct txgbe_hw *hw, u32 mask, int index) | ^~~~~~~~~~~~~~~~~~~~~~ drivers/net/ethernet/netswift/txgbe/txgbe_mbx.c:205:5: warning: no previous prototype for 'txgbe_check_for_msg_pf' [-Wmissing-prototypes] 205 | int txgbe_check_for_msg_pf(struct txgbe_hw *hw, u16 vf) | ^~~~~~~~~~~~~~~~~~~~~~ drivers/net/ethernet/netswift/txgbe/txgbe_mbx.c:227:5: warning: no previous prototype for 'txgbe_check_for_ack_pf' [-Wmissing-prototypes] 227 | int txgbe_check_for_ack_pf(struct txgbe_hw *hw, u16 vf) | ^~~~~~~~~~~~~~~~~~~~~~ drivers/net/ethernet/netswift/txgbe/txgbe_mbx.c:249:5: warning: no previous prototype for 'txgbe_check_for_rst_pf' [-Wmissing-prototypes] 249 | int txgbe_check_for_rst_pf(struct txgbe_hw *hw, u16 vf) | ^~~~~~~~~~~~~~~~~~~~~~ drivers/net/ethernet/netswift/txgbe/txgbe_mbx.c:274:5: warning: no previous prototype for 'txgbe_obtain_mbx_lock_pf' [-Wmissing-prototypes] 274 | int txgbe_obtain_mbx_lock_pf(struct txgbe_hw *hw, u16 vf) | ^~~~~~~~~~~~~~~~~~~~~~~~ drivers/net/ethernet/netswift/txgbe/txgbe_mbx.c:303:5: warning: no previous prototype for 'txgbe_write_mbx_pf' [-Wmissing-prototypes] 303 | int txgbe_write_mbx_pf(struct txgbe_hw *hw, u32 *msg, u16 size, | ^~~~~~~~~~~~~~~~~~ drivers/net/ethernet/netswift/txgbe/txgbe_mbx.c:346:5: warning: no previous prototype for 'txgbe_read_mbx_pf' [-Wmissing-prototypes] 346 | int txgbe_read_mbx_pf(struct txgbe_hw *hw, u32 *msg, u16 size, | ^~~~~~~~~~~~~~~~~
drivers/net/ethernet/netswift/txgbe/txgbe_mbx.o: warning: objtool: missing symbol for section .text