All of lore.kernel.org
 help / color / mirror / Atom feed
* [legion:sysctls-v3 22/30] net/rds/tcp.c:572:28: warning: unused variable 'ctx'
@ 2026-08-14  5:10 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-08-14  5:10 UTC (permalink / raw)
  To: Alexey Gladkov; +Cc: oe-kbuild-all

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2026-08-14  5:10 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-08-14  5:10 [legion:sysctls-v3 22/30] net/rds/tcp.c:572:28: warning: unused variable 'ctx' kernel test robot

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.