From: kernel test robot <lkp@intel.com>
To: Jakub Kicinski <kuba@kernel.org>, davem@davemloft.net
Cc: oe-kbuild-all@lists.linux.dev, netdev@vger.kernel.org,
edumazet@google.com, pabeni@redhat.com, andrew+netdev@lunn.ch,
horms@kernel.org, andrew@lunn.ch, przemyslaw.kitszel@intel.com,
anthony.l.nguyen@intel.com, sgoutham@marvell.com,
gakula@marvell.com, sbhatta@marvell.com, bbhushan2@marvell.com,
tariqt@nvidia.com, mbloch@nvidia.com, leon@kernel.org,
gal@nvidia.com, ecree.xilinx@gmail.com,
Jakub Kicinski <kuba@kernel.org>
Subject: Re: [PATCH net-next 4/5] net: ethtool: remove the compat code for _rxfh_context ops
Date: Tue, 1 Jul 2025 10:13:43 +0800 [thread overview]
Message-ID: <202507011009.04sxbKvR-lkp@intel.com> (raw)
In-Reply-To: <20250630160953.1093267-5-kuba@kernel.org>
Hi Jakub,
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/Jakub-Kicinski/eth-otx2-migrate-to-the-_rxfh_context-ops/20250701-002143
base: net-next/main
patch link: https://lore.kernel.org/r/20250630160953.1093267-5-kuba%40kernel.org
patch subject: [PATCH net-next 4/5] net: ethtool: remove the compat code for _rxfh_context ops
config: arm-randconfig-r072-20250701 (https://download.01.org/0day-ci/archive/20250701/202507011009.04sxbKvR-lkp@intel.com/config)
compiler: arm-linux-gnueabi-gcc (GCC) 13.3.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250701/202507011009.04sxbKvR-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/202507011009.04sxbKvR-lkp@intel.com/
All warnings (new ones prefixed by >>):
net/core/dev.c: In function 'netdev_rss_contexts_free':
>> net/core/dev.c:11981:43: warning: variable 'rxfh' set but not used [-Wunused-but-set-variable]
11981 | struct ethtool_rxfh_param rxfh;
| ^~~~
vim +/rxfh +11981 net/core/dev.c
^1da177e4c3f41 Linus Torvalds 2005-04-16 11973
6ad2962f8adfd5 Edward Cree 2024-06-27 11974 static void netdev_rss_contexts_free(struct net_device *dev)
6ad2962f8adfd5 Edward Cree 2024-06-27 11975 {
6ad2962f8adfd5 Edward Cree 2024-06-27 11976 struct ethtool_rxfh_context *ctx;
6ad2962f8adfd5 Edward Cree 2024-06-27 11977 unsigned long context;
6ad2962f8adfd5 Edward Cree 2024-06-27 11978
87925151191b64 Edward Cree 2024-06-27 11979 mutex_lock(&dev->ethtool->rss_lock);
6ad2962f8adfd5 Edward Cree 2024-06-27 11980 xa_for_each(&dev->ethtool->rss_ctx, context, ctx) {
6ad2962f8adfd5 Edward Cree 2024-06-27 @11981 struct ethtool_rxfh_param rxfh;
6ad2962f8adfd5 Edward Cree 2024-06-27 11982
6ad2962f8adfd5 Edward Cree 2024-06-27 11983 rxfh.indir = ethtool_rxfh_context_indir(ctx);
6ad2962f8adfd5 Edward Cree 2024-06-27 11984 rxfh.key = ethtool_rxfh_context_key(ctx);
6ad2962f8adfd5 Edward Cree 2024-06-27 11985 rxfh.hfunc = ctx->hfunc;
6ad2962f8adfd5 Edward Cree 2024-06-27 11986 rxfh.input_xfrm = ctx->input_xfrm;
6ad2962f8adfd5 Edward Cree 2024-06-27 11987 rxfh.rss_context = context;
6ad2962f8adfd5 Edward Cree 2024-06-27 11988 rxfh.rss_delete = true;
6ad2962f8adfd5 Edward Cree 2024-06-27 11989
6ad2962f8adfd5 Edward Cree 2024-06-27 11990 xa_erase(&dev->ethtool->rss_ctx, context);
122f0aaf307490 Jakub Kicinski 2025-06-30 11991 dev->ethtool_ops->remove_rxfh_context(dev, ctx, context, NULL);
6ad2962f8adfd5 Edward Cree 2024-06-27 11992 kfree(ctx);
6ad2962f8adfd5 Edward Cree 2024-06-27 11993 }
6ad2962f8adfd5 Edward Cree 2024-06-27 11994 xa_destroy(&dev->ethtool->rss_ctx);
87925151191b64 Edward Cree 2024-06-27 11995 mutex_unlock(&dev->ethtool->rss_lock);
6ad2962f8adfd5 Edward Cree 2024-06-27 11996 }
6ad2962f8adfd5 Edward Cree 2024-06-27 11997
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
next prev parent reply other threads:[~2025-07-01 2:14 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-06-30 16:09 [PATCH net-next 0/5] net: migrate remaining drivers to dedicated _rxfh_context ops Jakub Kicinski
2025-06-30 16:09 ` [PATCH net-next 1/5] eth: otx2: migrate to the *_rxfh_context ops Jakub Kicinski
2025-06-30 16:09 ` [PATCH net-next 2/5] eth: ice: drop the dead code related to rss_contexts Jakub Kicinski
2025-06-30 16:09 ` [PATCH net-next 3/5] eth: mlx5: migrate to the *_rxfh_context ops Jakub Kicinski
2025-06-30 16:58 ` Gal Pressman
2025-07-01 6:25 ` Gal Pressman
2025-07-02 2:43 ` Jakub Kicinski
2025-06-30 16:09 ` [PATCH net-next 4/5] net: ethtool: remove the compat code for _rxfh_context ops Jakub Kicinski
2025-07-01 2:13 ` kernel test robot [this message]
2025-07-01 6:26 ` Gal Pressman
2025-06-30 16:09 ` [PATCH net-next 5/5] net: ethtool: reduce indent " Jakub Kicinski
2025-07-01 6:26 ` Gal Pressman
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=202507011009.04sxbKvR-lkp@intel.com \
--to=lkp@intel.com \
--cc=andrew+netdev@lunn.ch \
--cc=andrew@lunn.ch \
--cc=anthony.l.nguyen@intel.com \
--cc=bbhushan2@marvell.com \
--cc=davem@davemloft.net \
--cc=ecree.xilinx@gmail.com \
--cc=edumazet@google.com \
--cc=gakula@marvell.com \
--cc=gal@nvidia.com \
--cc=horms@kernel.org \
--cc=kuba@kernel.org \
--cc=leon@kernel.org \
--cc=mbloch@nvidia.com \
--cc=netdev@vger.kernel.org \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=pabeni@redhat.com \
--cc=przemyslaw.kitszel@intel.com \
--cc=sbhatta@marvell.com \
--cc=sgoutham@marvell.com \
--cc=tariqt@nvidia.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.