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]
Message-ID: <202111191412.NaR4blJK-lkp@intel.com>
Date:   Fri, 19 Nov 2021 14:57:20 +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 27/36]
 fs/file_table.c:121:70: 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: 47adfac265f63db4f68748497fd11f2fee1e45b7 [27/36] fs: move fs stat sysctls to file_table.c
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=47adfac265f63db4f68748497fd11f2fee1e45b7
        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 47adfac265f63db4f68748497fd11f2fee1e45b7
        # 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/file_table.c: In function 'init_fs_stat_sysctls':
>> fs/file_table.c:121:70: error: macro "register_sysctl_init" passed 3 arguments, but takes just 2
     121 |         register_sysctl_init("fs", fs_stat_sysctls, "fs_stat_sysctls");
         |                                                                      ^
   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/fdtable.h:16,
                    from fs/file_table.c:12:
   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/file_table.c:121:9: error: 'register_sysctl_init' undeclared (first use in this function); did you mean 'register_sysctl_paths'?
     121 |         register_sysctl_init("fs", fs_stat_sysctls, "fs_stat_sysctls");
         |         ^~~~~~~~~~~~~~~~~~~~
         |         register_sysctl_paths
   fs/file_table.c:121:9: note: each undeclared identifier is reported only once for each function it appears in
   At top level:
   fs/file_table.c:90:25: warning: 'fs_stat_sysctls' defined but not used [-Wunused-variable]
      90 | static struct ctl_table fs_stat_sysctls[] = {
         |                         ^~~~~~~~~~~~~~~


vim +/register_sysctl_init +121 fs/file_table.c

   118	
   119	static int __init init_fs_stat_sysctls(void)
   120	{
 > 121		register_sysctl_init("fs", fs_stat_sysctls, "fs_stat_sysctls");
   122		return 0;
   123	}
   124	early_initcall(init_fs_stat_sysctls);
   125	#endif
   126	

---
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