[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202111191859.M8oMIC62-lkp@intel.com>
Date: Fri, 19 Nov 2021 18:40:03 +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 32/36]
fs/namei.c:1071:58: 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: a016e28cb93980d0d67db8cf558175595b1c3ec4 [32/36] fs: move namei 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=a016e28cb93980d0d67db8cf558175595b1c3ec4
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 a016e28cb93980d0d67db8cf558175595b1c3ec4
# 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/namei.c: In function 'init_fs_namei_sysctls':
>> fs/namei.c:1071:58: error: macro "register_sysctl_init" passed 3 arguments, but takes just 2
1071 | register_sysctl_init("fs", namei_sysctls, "namei");
| ^
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 fs/namei.c:22:
include/linux/sysctl.h:220: note: macro "register_sysctl_init" defined here
220 | #define register_sysctl_init(path, table) __register_sysctl_init(path, table, #table)
|
>> fs/namei.c:1071:9: error: 'register_sysctl_init' undeclared (first use in this function); did you mean 'register_sysctl_paths'?
1071 | register_sysctl_init("fs", namei_sysctls, "namei");
| ^~~~~~~~~~~~~~~~~~~~
| register_sysctl_paths
fs/namei.c:1071:9: note: each undeclared identifier is reported only once for each function it appears in
At top level:
fs/namei.c:1029:25: warning: 'namei_sysctls' defined but not used [-Wunused-variable]
1029 | static struct ctl_table namei_sysctls[] = {
| ^~~~~~~~~~~~~
vim +/register_sysctl_init +1071 fs/namei.c
1068
1069 static int __init init_fs_namei_sysctls(void)
1070 {
> 1071 register_sysctl_init("fs", namei_sysctls, "namei");
1072 return 0;
1073 }
1074 early_initcall(init_fs_namei_sysctls);
1075
---
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