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 09:47:28 +0800
From:   kernel test robot <lkp@...el.com>
To:     Xiaoming Ni <nixiaoming@...wei.com>
Cc:     kbuild-all@...ts.01.org, linux-kernel@...r.kernel.org,
        Luis Chamberlain <mcgrof@...nel.org>,
        Kees Cook <keescook@...omium.org>
Subject: [mcgrof-next:20211118-sysctl-cleanups-set-04-v2 3/36]
 kernel/hung_task.c:355:78: 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: 6ababba5c97fb472180d43b78dcabc24008e2bd6 [3/36] hung_task: Move hung_task sysctl interface to hung_task.c
config: microblaze-randconfig-r036-20211118 (attached as .config)
compiler: microblaze-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=6ababba5c97fb472180d43b78dcabc24008e2bd6
        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 6ababba5c97fb472180d43b78dcabc24008e2bd6
        # 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=microblaze 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 >>):

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


vim +/register_sysctl_init +355 kernel/hung_task.c

   352	
   353	static void __init hung_task_sysctl_init(void)
   354	{
 > 355		register_sysctl_init("kernel", hung_task_sysctls, "hung_task_sysctls");
   356	}
   357	#else
   358	#define hung_task_sysctl_init() do { } while (0)
   359	#endif /* CONFIG_SYSCTL */
   360	
   361	

---
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" (30171 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ