mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [mcgrof-next:20211118-sysctl-cleanups-set-04-v2 32/36] fs/namei.c:1071:58: error: macro "register_sysctl_init" passed 3 arguments, but takes just 2
@ 2021-11-19 10:40 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-11-19 10:40 UTC (permalink / raw)
  To: Luis Chamberlain; +Cc: kbuild-all, linux-kernel

[-- Attachment #1: Type: text/plain, Size: 3040 bytes --]

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/mcgrof/linux-next.git 20211118-sysctl-cleanups-set-04-v2
head:   3110d41a56792588bd2f64621080948b0fceb6ab
commit: a016e28cb93980d0d67db8cf558175595b1c3ec4 [32/36] fs: move namei sysctls to its own file
config: nds32-allnoconfig (attached as .config)
compiler: nds32le-linux-gcc (GCC) 11.2.0
reproduce (this is a W=1 build):
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # https://git.kernel.org/pub/scm/linux/kernel/git/mcgrof/linux-next.git/commit/?id=a016e28cb93980d0d67db8cf558175595b1c3ec4
        git remote add mcgrof-next https://git.kernel.org/pub/scm/linux/kernel/git/mcgrof/linux-next.git
        git fetch --no-tags mcgrof-next 20211118-sysctl-cleanups-set-04-v2
        git checkout a016e28cb93980d0d67db8cf558175595b1c3ec4
        # save the attached .config to linux build tree
        mkdir build_dir
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=nds32 SHELL=/bin/bash

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>

All errors (new ones prefixed by >>):

   fs/namei.c: In function 'init_fs_namei_sysctls':
>> fs/namei.c:1071:58: error: macro "register_sysctl_init" passed 3 arguments, but takes just 2
    1071 |         register_sysctl_init("fs", namei_sysctls, "namei");
         |                                                          ^
   In file included from include/linux/key.h:17,
                    from include/linux/cred.h:13,
                    from include/linux/sched/signal.h:10,
                    from include/linux/rcuwait.h:6,
                    from include/linux/percpu-rwsem.h:7,
                    from include/linux/fs.h:33,
                    from fs/namei.c:22:
   include/linux/sysctl.h:220: note: macro "register_sysctl_init" defined here
     220 | #define register_sysctl_init(path, table) __register_sysctl_init(path, table, #table)
         | 
>> fs/namei.c:1071:9: error: 'register_sysctl_init' undeclared (first use in this function); did you mean 'register_sysctl_paths'?
    1071 |         register_sysctl_init("fs", namei_sysctls, "namei");
         |         ^~~~~~~~~~~~~~~~~~~~
         |         register_sysctl_paths
   fs/namei.c:1071:9: note: each undeclared identifier is reported only once for each function it appears in
   At top level:
   fs/namei.c:1029:25: warning: 'namei_sysctls' defined but not used [-Wunused-variable]
    1029 | static struct ctl_table namei_sysctls[] = {
         |                         ^~~~~~~~~~~~~


vim +/register_sysctl_init +1071 fs/namei.c

  1068	
  1069	static int __init init_fs_namei_sysctls(void)
  1070	{
> 1071		register_sysctl_init("fs", namei_sysctls, "namei");
  1072		return 0;
  1073	}
  1074	early_initcall(init_fs_namei_sysctls);
  1075	

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 6136 bytes --]

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

only message in thread, other threads:[~2021-11-19 10:40 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-11-19 10:40 [mcgrof-next:20211118-sysctl-cleanups-set-04-v2 32/36] fs/namei.c:1071:58: error: macro "register_sysctl_init" passed 3 arguments, but takes just 2 kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome