tree: https://gitee.com/openeuler/kernel.git OLK-6.6 head: 5394cae209c4a4990d81be436ba17ae56fb09d16 commit: 2048b5b7f264f56a4d9e73079e790e13c8596aaf [3083/3083] net: wangxun: txgbe: add support for wangxun 10G/25G/40G config: loongarch-randconfig-001-20251102 (https://download.01.org/0day-ci/archive/20251102/202511021602.OMQuliZc-lkp@i...) compiler: loongarch64-linux-gcc (GCC) 15.1.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20251102/202511021602.OMQuliZc-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/202511021602.OMQuliZc-lkp@intel.com/ All warnings (new ones prefixed by >>): In file included from drivers/net/ethernet/wangxun/txgbe/txgbe_ethtool.c:14: drivers/net/ethernet/wangxun/txgbe/txgbe.h: In function 'txgbe_misc_isb': drivers/net/ethernet/wangxun/txgbe/txgbe.h:987:13: warning: variable 'cur_diff' set but not used [-Wunused-but-set-variable] 987 | u32 cur_diff = 0; | ^~~~~~~~ drivers/net/ethernet/wangxun/txgbe/txgbe_ethtool.c: In function 'txgbe_set_priv_flags': drivers/net/ethernet/wangxun/txgbe/txgbe_ethtool.c:1861:14: warning: variable 'reset_needed' set but not used [-Wunused-but-set-variable] 1861 | bool reset_needed = 0; | ^~~~~~~~~~~~ drivers/net/ethernet/wangxun/txgbe/txgbe_ethtool.c: In function 'txgbe_get_strings':
drivers/net/ethernet/wangxun/txgbe/txgbe_ethtool.c:1988:47: warning: '%s' directive output may be truncated writing up to 95 bytes into a region of size 32 [-Wformat-truncation=] 1988 | snprintf(p, ETH_GSTRING_LEN, "%s", | ^~ In function 'txgbe_get_priv_flag_strings', inlined from 'txgbe_get_strings' at drivers/net/ethernet/wangxun/txgbe/txgbe_ethtool.c:2044:3: drivers/net/ethernet/wangxun/txgbe/txgbe_ethtool.c:1988:17: note: 'snprintf' output between 1 and 96 bytes into a destination of size 32 1988 | snprintf(p, ETH_GSTRING_LEN, "%s", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1989 | txgbe_gstrings_priv_flags[i].flag_string); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
vim +1988 drivers/net/ethernet/wangxun/txgbe/txgbe_ethtool.c 1981 1982 static void txgbe_get_priv_flag_strings(struct net_device *netdev, u8 *data) 1983 { 1984 char *p = (char *)data; 1985 unsigned int i; 1986 1987 for (i = 0; i < TXGBE_PRIV_FLAGS_STR_LEN; i++) {
1988 snprintf(p, ETH_GSTRING_LEN, "%s", 1989 txgbe_gstrings_priv_flags[i].flag_string); 1990 p += ETH_GSTRING_LEN; 1991 } 1992 } 1993
-- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki