[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202111192110.vIX6RuX5-lkp@intel.com>
Date: Fri, 19 Nov 2021 21:45:17 +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 36/36]
fs/namespace.c:4615:77: 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: 3110d41a56792588bd2f64621080948b0fceb6ab [36/36] fs: move namespace sysctls and declare fs base directory
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=3110d41a56792588bd2f64621080948b0fceb6ab
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 3110d41a56792588bd2f64621080948b0fceb6ab
# 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/namespace.c: In function 'init_fs_namespace_sysctls':
>> fs/namespace.c:4615:77: error: macro "register_sysctl_init" passed 3 arguments, but takes just 2
4615 | register_sysctl_init("fs", fs_namespace_sysctls, "namespace_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/uapi/linux/aio_abi.h:31,
from include/linux/syscalls.h:77,
from fs/namespace.c:11:
include/linux/sysctl.h:233: note: macro "register_sysctl_init" defined here
233 | #define register_sysctl_init(path, table) __register_sysctl_init(path, table, #table)
|
>> fs/namespace.c:4615:9: error: 'register_sysctl_init' undeclared (first use in this function); did you mean 'register_sysctl_paths'?
4615 | register_sysctl_init("fs", fs_namespace_sysctls, "namespace_sysctls");
| ^~~~~~~~~~~~~~~~~~~~
| register_sysctl_paths
fs/namespace.c:4615:9: note: each undeclared identifier is reported only once for each function it appears in
At top level:
fs/namespace.c:4601:25: warning: 'fs_namespace_sysctls' defined but not used [-Wunused-variable]
4601 | static struct ctl_table fs_namespace_sysctls[] = {
| ^~~~~~~~~~~~~~~~~~~~
vim +/register_sysctl_init +4615 fs/namespace.c
4612
4613 static int __init init_fs_namespace_sysctls(void)
4614 {
> 4615 register_sysctl_init("fs", fs_namespace_sysctls, "namespace_sysctls");
4616 return 0;
4617 }
4618 early_initcall(init_fs_namespace_sysctls);
4619
---
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