All of lore.kernel.org
 help / color / mirror / Atom feed
* [joelgranados:jag/sysctl-testing-for-0day 54/67] net/llc/sysctl_net_llc.c:54:38: error: invalid initializer
@ 2023-08-09  5:09 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2023-08-09  5:09 UTC (permalink / raw)
  To: Joel Granados; +Cc: oe-kbuild-all

tree:   https://github.com/Joelgranados/linux.git jag/sysctl-testing-for-0day
head:   8958c484809b25f8d552560d679fcb6bdd441c88
commit: 8ab9c9bf315ce95177e9a7cac46d7aa95d3fec7b [54/67] networking: rm sentinel element from ctl_table array
config: x86_64-allyesconfig (https://download.01.org/0day-ci/archive/20230809/202308091247.2TDB6Wte-lkp@intel.com/config)
compiler: gcc-12 (Debian 12.2.0-14) 12.2.0
reproduce: (https://download.01.org/0day-ci/archive/20230809/202308091247.2TDB6Wte-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/202308091247.2TDB6Wte-lkp@intel.com/

All errors (new ones prefixed by >>):

   net/llc/sysctl_net_llc.c: In function 'llc_sysctl_init':
>> net/llc/sysctl_net_llc.c:54:38: error: invalid initializer
      54 |         struct ctl_table empty[1] = {0};
         |                                      ^
   net/llc/sysctl_net_llc.c:54:38: note: (near initialization for 'empty[0].<anonymous>')


vim +54 net/llc/sysctl_net_llc.c

    51	
    52	int __init llc_sysctl_init(void)
    53	{
  > 54		struct ctl_table empty[1] = {0};
    55		llc2_timeout_header = register_net_sysctl(&init_net, "net/llc/llc2/timeout", llc2_timeout_table);
    56		llc_station_header = __register_sysctl_table(&init_net.sysctls,
    57							     "net/llc/station", empty, 0);
    58	
    59		if (!llc2_timeout_header || !llc_station_header) {
    60			llc_sysctl_exit();
    61			return -ENOMEM;
    62		}
    63		return 0;
    64	}
    65	

-- 
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:[~2023-08-09  5:10 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-08-09  5:09 [joelgranados:jag/sysctl-testing-for-0day 54/67] net/llc/sysctl_net_llc.c:54:38: error: invalid initializer 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.