From: kernel test robot <lkp@intel.com>
To: edward.cree@amd.com, linux-net-drivers@amd.com,
davem@davemloft.net, kuba@kernel.org, edumazet@google.com,
pabeni@redhat.com, horms@kernel.org, andrew+netdev@lunn.ch
Cc: oe-kbuild-all@lists.linux.dev,
Edward Cree <ecree.xilinx@gmail.com>,
habetsm.xilinx@gmail.com, jiri@resnulli.us,
netdev@vger.kernel.org
Subject: Re: [PATCH net-next 2/4] sfc: extend NVRAM MCDI handlers
Date: Sat, 8 Feb 2025 00:50:06 +0800 [thread overview]
Message-ID: <202502080054.s619TTmK-lkp@intel.com> (raw)
In-Reply-To: <6ad7f4af17c2566ddc53fd247a0d0a790eff02ae.1738881614.git.ecree.xilinx@gmail.com>
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@intel.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
next prev parent reply other threads:[~2025-02-07 16:50 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-02-07 0:06 [PATCH net-next 0/4] sfc: support devlink flash edward.cree
2025-02-07 0:06 ` [PATCH net-next 1/4] sfc: parse headers of devlink flash images edward.cree
2025-02-07 0:06 ` [PATCH net-next 2/4] sfc: extend NVRAM MCDI handlers edward.cree
2025-02-07 16:50 ` kernel test robot [this message]
2025-02-08 2:18 ` Edward Cree
2025-02-07 0:06 ` [PATCH net-next 3/4] sfc: deploy devlink flash images to NIC over MCDI edward.cree
2025-02-07 0:06 ` [PATCH net-next 4/4] sfc: document devlink flash support edward.cree
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202502080054.s619TTmK-lkp@intel.com \
--to=lkp@intel.com \
--cc=andrew+netdev@lunn.ch \
--cc=davem@davemloft.net \
--cc=ecree.xilinx@gmail.com \
--cc=edumazet@google.com \
--cc=edward.cree@amd.com \
--cc=habetsm.xilinx@gmail.com \
--cc=horms@kernel.org \
--cc=jiri@resnulli.us \
--cc=kuba@kernel.org \
--cc=linux-net-drivers@amd.com \
--cc=netdev@vger.kernel.org \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=pabeni@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).