* [mcgrof:sysctl-testing 43/44] net/sunrpc/sysctl.c:178:1: warning: no previous prototype for function 'rpc_register_sysctl'
@ 2023-03-11 22:54 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2023-03-11 22:54 UTC (permalink / raw)
To: Luis Chamberlain; +Cc: llvm, oe-kbuild-all
Hi Luis,
FYI, the error/warning was bisected to this commit, please ignore it if it's irrelevant.
tree: https://git.kernel.org/pub/scm/linux/kernel/git/mcgrof/linux.git sysctl-testing
head: f66d0fcc0d9164174c2e72045110f43557649cad
commit: 95e20e8aa440148ec8eed523ecc683e4dad15644 [43/44] sunrpc: move sunrpc_table and proc routines above
config: x86_64-randconfig-a014 (https://download.01.org/0day-ci/archive/20230312/202303120608.ZC8CkGMw-lkp@intel.com/config)
compiler: clang version 14.0.6 (https://github.com/llvm/llvm-project f28c006a5895fc0e329fe15fead81e37457cb1d1)
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.git/commit/?id=95e20e8aa440148ec8eed523ecc683e4dad15644
git remote add mcgrof https://git.kernel.org/pub/scm/linux/kernel/git/mcgrof/linux.git
git fetch --no-tags mcgrof sysctl-testing
git checkout 95e20e8aa440148ec8eed523ecc683e4dad15644
# save the config file
mkdir build_dir && cp config build_dir/.config
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=x86_64 olddefconfig
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=x86_64 SHELL=/bin/bash net/sunrpc/
If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <lkp@intel.com>
| Link: https://lore.kernel.org/oe-kbuild-all/202303120608.ZC8CkGMw-lkp@intel.com/
All warnings (new ones prefixed by >>):
In file included from net/sunrpc/sysctl.c:20:
In file included from include/linux/sunrpc/sched.h:19:
include/linux/sunrpc/xdr.h:753:10: warning: result of comparison of constant 4611686018427387903 with expression of type '__u32' (aka 'unsigned int') is always false [-Wtautological-constant-out-of-range-compare]
if (len > SIZE_MAX / sizeof(*p))
~~~ ^ ~~~~~~~~~~~~~~~~~~~~~
net/sunrpc/sysctl.c:135:19: error: use of undeclared identifier 'proc_dodebug'; did you mean 'rpc_debug'?
.proc_handler = proc_dodebug
^~~~~~~~~~~~
rpc_debug
net/sunrpc/sysctl.c:30:19: note: 'rpc_debug' declared here
EXPORT_SYMBOL_GPL(rpc_debug);
^
net/sunrpc/sysctl.c:142:19: error: use of undeclared identifier 'proc_dodebug'; did you mean 'rpc_debug'?
.proc_handler = proc_dodebug
^~~~~~~~~~~~
rpc_debug
net/sunrpc/sysctl.c:30:19: note: 'rpc_debug' declared here
EXPORT_SYMBOL_GPL(rpc_debug);
^
net/sunrpc/sysctl.c:149:19: error: use of undeclared identifier 'proc_dodebug'; did you mean 'rpc_debug'?
.proc_handler = proc_dodebug
^~~~~~~~~~~~
rpc_debug
net/sunrpc/sysctl.c:30:19: note: 'rpc_debug' declared here
EXPORT_SYMBOL_GPL(rpc_debug);
^
net/sunrpc/sysctl.c:156:19: error: use of undeclared identifier 'proc_dodebug'; did you mean 'rpc_debug'?
.proc_handler = proc_dodebug
^~~~~~~~~~~~
rpc_debug
net/sunrpc/sysctl.c:30:19: note: 'rpc_debug' declared here
EXPORT_SYMBOL_GPL(rpc_debug);
^
net/sunrpc/sysctl.c:162:19: error: use of undeclared identifier 'proc_do_xprt'
.proc_handler = proc_do_xprt,
^
>> net/sunrpc/sysctl.c:178:1: warning: no previous prototype for function 'rpc_register_sysctl' [-Wmissing-prototypes]
rpc_register_sysctl(void)
^
net/sunrpc/sysctl.c:177:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void
^
static
>> net/sunrpc/sysctl.c:185:1: warning: no previous prototype for function 'rpc_unregister_sysctl' [-Wmissing-prototypes]
rpc_unregister_sysctl(void)
^
net/sunrpc/sysctl.c:184:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void
^
static
3 warnings and 5 errors generated.
vim +/rpc_register_sysctl +178 net/sunrpc/sysctl.c
175
176
177 void
> 178 rpc_register_sysctl(void)
179 {
180 if (!sunrpc_table_header)
181 sunrpc_table_header = register_sysctl_table(sunrpc_table);
182 }
183
184 void
> 185 rpc_unregister_sysctl(void)
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2023-03-11 22:55 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-03-11 22:54 [mcgrof:sysctl-testing 43/44] net/sunrpc/sysctl.c:178:1: warning: no previous prototype for function 'rpc_register_sysctl' kernel test robot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).