lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Date:   Fri, 19 Nov 2021 16:36:27 +0800
From:   kernel test robot <lkp@...el.com>
To:     Luis Chamberlain <mcgrof@...nel.org>
Cc:     kbuild-all@...ts.01.org, linux-kernel@...r.kernel.org
Subject: [mcgrof-next:20211118-sysctl-cleanups-set-04-v2 28/36]
 fs/dcache.c:192:63: error: macro "register_sysctl_init" passed 3 arguments,
 but takes just 2

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/mcgrof/linux-next.git 20211118-sysctl-cleanups-set-04-v2
head:   3110d41a56792588bd2f64621080948b0fceb6ab
commit: 55db5cb7387c09fbdfc731a9ab1573f69d8f1d6d [28/36] fs: move dcache 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=55db5cb7387c09fbdfc731a9ab1573f69d8f1d6d
        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 55db5cb7387c09fbdfc731a9ab1573f69d8f1d6d
        # 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@...el.com>

All errors (new ones prefixed by >>):

   fs/dcache.c: In function 'init_fs_dcache_sysctls':
>> fs/dcache.c:192:63: error: macro "register_sysctl_init" passed 3 arguments, but takes just 2
     192 |         register_sysctl_init("fs", fs_dcache_sysctls, "dcache");
         |                                                               ^
   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 include/linux/huge_mm.h:8,
                    from include/linux/mm.h:717,
                    from fs/dcache.c:20:
   include/linux/sysctl.h:216: note: macro "register_sysctl_init" defined here
     216 | #define register_sysctl_init(path, table) __register_sysctl_init(path, table, #table)
         | 
>> fs/dcache.c:192:9: error: 'register_sysctl_init' undeclared (first use in this function); did you mean 'register_sysctl_paths'?
     192 |         register_sysctl_init("fs", fs_dcache_sysctls, "dcache");
         |         ^~~~~~~~~~~~~~~~~~~~
         |         register_sysctl_paths
   fs/dcache.c:192:9: note: each undeclared identifier is reported only once for each function it appears in
   At top level:
   fs/dcache.c:179:25: warning: 'fs_dcache_sysctls' defined but not used [-Wunused-variable]
     179 | static struct ctl_table fs_dcache_sysctls[] = {
         |                         ^~~~~~~~~~~~~~~~~


vim +/register_sysctl_init +192 fs/dcache.c

   189	
   190	static int __init init_fs_dcache_sysctls(void)
   191	{
 > 192		register_sysctl_init("fs", fs_dcache_sysctls, "dcache");
   193		return 0;
   194	}
   195	early_initcall(init_fs_dcache_sysctls);
   196	#endif
   197	

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

Download attachment ".config.gz" of type "application/gzip" (6136 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ