[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <202405160844.t8jS88dy-lkp@intel.com>
Date: Thu, 16 May 2024 08:46:27 +0800
From: kernel test robot <lkp@...el.com>
To: Mengyuan Lou <mengyuanlou@...-swift.com>, netdev@...r.kernel.org
Cc: llvm@...ts.linux.dev, oe-kbuild-all@...ts.linux.dev,
jiawenwu@...stnetic.com, duanqiangwen@...-swift.com,
Mengyuan Lou <mengyuanlou@...-swift.com>
Subject: Re: [PATCH net-next v3 5/6] net: ngbe: add sriov function support
Hi Mengyuan,
kernel test robot noticed the following build warnings:
[auto build test WARNING on net-next/main]
url: https://github.com/intel-lab-lkp/linux/commits/Mengyuan-Lou/net-libwx-Add-sriov-api-for-wangxun-nics/20240515-185015
base: net-next/main
patch link: https://lore.kernel.org/r/15515521993762EE%2B20240515100830.32920-6-mengyuanlou%40net-swift.com
patch subject: [PATCH net-next v3 5/6] net: ngbe: add sriov function support
config: x86_64-allyesconfig (https://download.01.org/0day-ci/archive/20240516/202405160844.t8jS88dy-lkp@intel.com/config)
compiler: clang version 18.1.5 (https://github.com/llvm/llvm-project 617a15a9eac96088ae5e9134248d8236e34b91b1)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240516/202405160844.t8jS88dy-lkp@intel.com/reproduce)
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@...el.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202405160844.t8jS88dy-lkp@intel.com/
All warnings (new ones prefixed by >>):
>> drivers/net/ethernet/wangxun/libwx/wx_sriov.c:999:17: warning: variable 'i' is uninitialized when used here [-Wuninitialized]
999 | if (wx->vfinfo[i].clear_to_send)
| ^
drivers/net/ethernet/wangxun/libwx/wx_sriov.c:992:7: note: initialize the variable 'i' to silence this warning
992 | u16 i;
| ^
| = 0
drivers/net/ethernet/wangxun/libwx/wx_sriov.c:312:20: warning: unused function 'wx_ping_vf' [-Wunused-function]
312 | static inline void wx_ping_vf(struct wx *wx, int vf)
| ^~~~~~~~~~
2 warnings generated.
vim +/i +999 drivers/net/ethernet/wangxun/libwx/wx_sriov.c
988
989 void wx_ping_all_vfs_with_link_status(struct wx *wx, bool link_up)
990 {
991 u32 msgbuf[2] = {0, 0};
992 u16 i;
993
994 if (!wx->num_vfs)
995 return;
996 msgbuf[0] = WX_PF_NOFITY_VF_LINK_STATUS | WX_PF_CONTROL_MSG;
997 if (link_up)
998 msgbuf[1] = (wx->speed << 1) | link_up;
> 999 if (wx->vfinfo[i].clear_to_send)
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
Powered by blists - more mailing lists