[legion:sysctls-v3 22/30] net/rds/tcp.c:572:28: warning: unused variable 'ctx'
kernel test robot <[email protected]>
| Newsgroups | dev.linux.lists.oe-kbuild-all |
|---|---|
| Message-ID | <[email protected]> |
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/[email protected]/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/[email protected]/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 <[email protected]> | Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/ 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