All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Alexey Gladkov <legion@kernel.org>
Cc: oe-kbuild-all@lists.linux.dev
Subject: [legion:sysctls-v3 22/30] net/rds/tcp.c:572:28: warning: unused variable 'ctx'
Date: Fri, 14 Aug 2026 13:10:30 +0800	[thread overview]
Message-ID: <202608141345.mpAz9iys-lkp@intel.com> (raw)

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/legion/linux.git sysctls-v3
head:   b5c5a5b075f61f062cb2d253d35c118b8eecc40b
commit: aa01e0152a5063570b31fe61af5cb16eaa895a7b [22/30] sysctl: net: use ctl_field in RDS sysctls
config: arm-randconfig-003-20260814 (https://download.01.org/0day-ci/archive/20260814/202608141345.mpAz9iys-lkp@intel.com/config)
compiler: arm-linux-gnueabi-gcc (GCC) 16.1.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260814/202608141345.mpAz9iys-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/202608141345.mpAz9iys-lkp@intel.com/

All warnings (new ones prefixed by >>):

   net/rds/tcp.c: In function 'rds_tcp_init_net':
>> net/rds/tcp.c:572:28: warning: unused variable 'ctx' [-Wunused-variable]
     572 |         struct ctl_context ctx = {
         |                            ^~~
   net/rds/tcp.c: At top level:
>> net/rds/tcp.c:114:31: warning: 'rds_tcp_sysctl_table' defined but not used [-Wunused-const-variable=]
     114 | static const struct ctl_field rds_tcp_sysctl_table[] = {
         |                               ^~~~~~~~~~~~~~~~~~~~


vim +/ctx +572 net/rds/tcp.c

   569	
   570	static __net_init int rds_tcp_init_net(struct net *net)
   571	{
 > 572		struct ctl_context ctx = {
   573			.ns.net_ns = net,
   574		};
   575		struct rds_tcp_net *rtn = net_generic(net, rds_tcp_netid);
   576		int err = 0;
   577	
   578		memset(rtn, 0, sizeof(*rtn));
   579	
   580		mutex_init(&rtn->rds_tcp_accept_lock);
   581	

--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

                 reply	other threads:[~2026-08-14  5:10 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=202608141345.mpAz9iys-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=legion@kernel.org \
    --cc=oe-kbuild-all@lists.linux.dev \
    /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.