All of lore.kernel.org
 help / color / mirror / Atom feed
* [mcgrof-next:20211118-sysctl-cleanups-set-04-v2 4/36] kernel/watchdog.c:839:76: error: macro "register_sysctl_init" passed 3 arguments, but takes just 2
@ 2021-11-19  1:30 ` kernel test robot
  0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2021-11-19  1:30 UTC (permalink / raw)
  To: Xiaoming Ni; +Cc: kbuild-all, linux-kernel, Luis Chamberlain, Kees Cook

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

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/mcgrof/linux-next.git 20211118-sysctl-cleanups-set-04-v2
head:   3110d41a56792588bd2f64621080948b0fceb6ab
commit: c70e1c11c9a84701858e30697feb53a254d278c6 [4/36] watchdog: move watchdog sysctl interface to watchdog.c
config: alpha-randconfig-r026-20211118 (attached as .config)
compiler: alpha-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=c70e1c11c9a84701858e30697feb53a254d278c6
        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 c70e1c11c9a84701858e30697feb53a254d278c6
        # 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=alpha 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 >>):

   kernel/watchdog.c: In function 'watchdog_sysctl_init':
>> kernel/watchdog.c:839:76: error: macro "register_sysctl_init" passed 3 arguments, but takes just 2
     839 |         register_sysctl_init("kernel", watchdog_sysctls, "watchdog_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/watchdog.c:15:
   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/watchdog.c:839:9: error: 'register_sysctl_init' undeclared (first use in this function); did you mean 'register_sysctl_paths'?
     839 |         register_sysctl_init("kernel", watchdog_sysctls, "watchdog_sysctls");
         |         ^~~~~~~~~~~~~~~~~~~~
         |         register_sysctl_paths
   kernel/watchdog.c:839:9: note: each undeclared identifier is reported only once for each function it appears in
   At top level:
   kernel/watchdog.c:746:25: warning: 'watchdog_sysctls' defined but not used [-Wunused-variable]
     746 | static struct ctl_table watchdog_sysctls[] = {
         |                         ^~~~~~~~~~~~~~~~


vim +/register_sysctl_init +839 kernel/watchdog.c

   836	
   837	static void __init watchdog_sysctl_init(void)
   838	{
 > 839		register_sysctl_init("kernel", watchdog_sysctls, "watchdog_sysctls");
   840	}
   841	#else
   842	#define watchdog_sysctl_init() do { } while (0)
   843	#endif /* CONFIG_SYSCTL */
   844	

---
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: 38306 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [mcgrof-next:20211118-sysctl-cleanups-set-04-v2 4/36] kernel/watchdog.c:839:76: error: macro "register_sysctl_init" passed 3 arguments, but takes just 2
@ 2021-11-19  1:30 ` kernel test robot
  0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2021-11-19  1:30 UTC (permalink / raw)
  To: kbuild-all

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

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/mcgrof/linux-next.git 20211118-sysctl-cleanups-set-04-v2
head:   3110d41a56792588bd2f64621080948b0fceb6ab
commit: c70e1c11c9a84701858e30697feb53a254d278c6 [4/36] watchdog: move watchdog sysctl interface to watchdog.c
config: alpha-randconfig-r026-20211118 (attached as .config)
compiler: alpha-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=c70e1c11c9a84701858e30697feb53a254d278c6
        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 c70e1c11c9a84701858e30697feb53a254d278c6
        # 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=alpha 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 >>):

   kernel/watchdog.c: In function 'watchdog_sysctl_init':
>> kernel/watchdog.c:839:76: error: macro "register_sysctl_init" passed 3 arguments, but takes just 2
     839 |         register_sysctl_init("kernel", watchdog_sysctls, "watchdog_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/watchdog.c:15:
   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/watchdog.c:839:9: error: 'register_sysctl_init' undeclared (first use in this function); did you mean 'register_sysctl_paths'?
     839 |         register_sysctl_init("kernel", watchdog_sysctls, "watchdog_sysctls");
         |         ^~~~~~~~~~~~~~~~~~~~
         |         register_sysctl_paths
   kernel/watchdog.c:839:9: note: each undeclared identifier is reported only once for each function it appears in
   At top level:
   kernel/watchdog.c:746:25: warning: 'watchdog_sysctls' defined but not used [-Wunused-variable]
     746 | static struct ctl_table watchdog_sysctls[] = {
         |                         ^~~~~~~~~~~~~~~~


vim +/register_sysctl_init +839 kernel/watchdog.c

   836	
   837	static void __init watchdog_sysctl_init(void)
   838	{
 > 839		register_sysctl_init("kernel", watchdog_sysctls, "watchdog_sysctls");
   840	}
   841	#else
   842	#define watchdog_sysctl_init() do { } while (0)
   843	#endif /* CONFIG_SYSCTL */
   844	

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

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-11-19  1:31 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-11-19  1:30 [mcgrof-next:20211118-sysctl-cleanups-set-04-v2 4/36] kernel/watchdog.c:839:76: error: macro "register_sysctl_init" passed 3 arguments, but takes just 2 kernel test robot
2021-11-19  1:30 ` 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.