[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <202502080054.s619TTmK-lkp@intel.com>
Date: Sat, 8 Feb 2025 00:50:06 +0800
From: kernel test robot <lkp@...el.com>
To: edward.cree@....com, linux-net-drivers@....com, davem@...emloft.net,
kuba@...nel.org, edumazet@...gle.com, pabeni@...hat.com,
horms@...nel.org, andrew+netdev@...n.ch
Cc: oe-kbuild-all@...ts.linux.dev, Edward Cree <ecree.xilinx@...il.com>,
habetsm.xilinx@...il.com, jiri@...nulli.us, netdev@...r.kernel.org
Subject: Re: [PATCH net-next 2/4] sfc: extend NVRAM MCDI handlers
Hi,
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/edward-cree-amd-com/sfc-parse-headers-of-devlink-flash-images/20250207-081201
base: net-next/main
patch link: https://lore.kernel.org/r/6ad7f4af17c2566ddc53fd247a0d0a790eff02ae.1738881614.git.ecree.xilinx%40gmail.com
patch subject: [PATCH net-next 2/4] sfc: extend NVRAM MCDI handlers
config: i386-randconfig-002-20250207 (https://download.01.org/0day-ci/archive/20250208/202502080054.s619TTmK-lkp@intel.com/config)
compiler: gcc-12 (Debian 12.2.0-14) 12.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250208/202502080054.s619TTmK-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/202502080054.s619TTmK-lkp@intel.com/
All warnings (new ones prefixed by >>):
>> drivers/net/ethernet/sfc/mcdi.c:2195:12: warning: 'efx_mcdi_nvram_read' defined but not used [-Wunused-function]
2195 | static int efx_mcdi_nvram_read(struct efx_nic *efx, unsigned int type,
| ^~~~~~~~~~~~~~~~~~~
vim +/efx_mcdi_nvram_read +2195 drivers/net/ethernet/sfc/mcdi.c
45a3fd55acc898 Ben Hutchings 2012-11-28 2194
45a3fd55acc898 Ben Hutchings 2012-11-28 @2195 static int efx_mcdi_nvram_read(struct efx_nic *efx, unsigned int type,
45a3fd55acc898 Ben Hutchings 2012-11-28 2196 loff_t offset, u8 *buffer, size_t length)
45a3fd55acc898 Ben Hutchings 2012-11-28 2197 {
5fb1beeceab857 Bert Kenward 2019-01-16 2198 MCDI_DECLARE_BUF(inbuf, MC_CMD_NVRAM_READ_IN_V2_LEN);
45a3fd55acc898 Ben Hutchings 2012-11-28 2199 MCDI_DECLARE_BUF(outbuf,
45a3fd55acc898 Ben Hutchings 2012-11-28 2200 MC_CMD_NVRAM_READ_OUT_LEN(EFX_MCDI_NVRAM_LEN_MAX));
45a3fd55acc898 Ben Hutchings 2012-11-28 2201 size_t outlen;
45a3fd55acc898 Ben Hutchings 2012-11-28 2202 int rc;
45a3fd55acc898 Ben Hutchings 2012-11-28 2203
45a3fd55acc898 Ben Hutchings 2012-11-28 2204 MCDI_SET_DWORD(inbuf, NVRAM_READ_IN_TYPE, type);
45a3fd55acc898 Ben Hutchings 2012-11-28 2205 MCDI_SET_DWORD(inbuf, NVRAM_READ_IN_OFFSET, offset);
45a3fd55acc898 Ben Hutchings 2012-11-28 2206 MCDI_SET_DWORD(inbuf, NVRAM_READ_IN_LENGTH, length);
5fb1beeceab857 Bert Kenward 2019-01-16 2207 MCDI_SET_DWORD(inbuf, NVRAM_READ_IN_V2_MODE,
5fb1beeceab857 Bert Kenward 2019-01-16 2208 MC_CMD_NVRAM_READ_IN_V2_DEFAULT);
45a3fd55acc898 Ben Hutchings 2012-11-28 2209
45a3fd55acc898 Ben Hutchings 2012-11-28 2210 rc = efx_mcdi_rpc(efx, MC_CMD_NVRAM_READ, inbuf, sizeof(inbuf),
45a3fd55acc898 Ben Hutchings 2012-11-28 2211 outbuf, sizeof(outbuf), &outlen);
45a3fd55acc898 Ben Hutchings 2012-11-28 2212 if (rc)
1e0b8120b2aef5 Edward Cree 2013-05-31 2213 return rc;
45a3fd55acc898 Ben Hutchings 2012-11-28 2214
45a3fd55acc898 Ben Hutchings 2012-11-28 2215 memcpy(buffer, MCDI_PTR(outbuf, NVRAM_READ_OUT_READ_BUFFER), length);
45a3fd55acc898 Ben Hutchings 2012-11-28 2216 return 0;
45a3fd55acc898 Ben Hutchings 2012-11-28 2217 }
45a3fd55acc898 Ben Hutchings 2012-11-28 2218
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
Powered by blists - more mailing lists