Hi Nick,
Thank you for the patch! Perhaps something to improve:
[auto build test WARNING on linux/master]
[also build test WARNING on linus/master v5.16-rc5]
[cannot apply to masahiroy/kconfig jeyu/modules-next next-20211217]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]
url:
https://github.com/0day-ci/linux/commits/Nick-Alcock/kbuild-bring-back-tr...
base:
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
136057256686de39cc3a07c2e39ef6bc43003ff6
config: arm-randconfig-r032-20211216
(
https://download.01.org/0day-ci/archive/20211218/202112180057.UZKXPkGe-lk...)
compiler: clang version 14.0.0 (
https://github.com/llvm/llvm-project
dd245bab9fbb364faa1581e4f92ba3119a872fba)
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
# install arm cross compiling tool for clang build
# apt-get install binutils-arm-linux-gnueabi
#
https://github.com/0day-ci/linux/commit/4487902c03d7f7e83c68807ab24d62c46...
git remote add linux-review
https://github.com/0day-ci/linux
git fetch --no-tags linux-review
Nick-Alcock/kbuild-bring-back-tristate-conf/20211217-051935
git checkout 4487902c03d7f7e83c68807ab24d62c467338795
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir
ARCH=arm SHELL=/bin/bash
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
kernel/kallsyms.c:665:12: warning: no previous prototype for function
'arch_get_kallsym' [-Wmissing-prototypes]
int __weak arch_get_kallsym(unsigned int symnum, unsigned long *value,
^
kernel/kallsyms.c:665:1: note: declare 'static' if the function is not intended
to be used outside of this translation unit
int __weak arch_get_kallsym(unsigned int symnum, unsigned long *value,
^
static
kernel/kallsyms.c:1074:30: warning: unused variable 'kallsyms_proc_ops'
[-Wunused-const-variable]
static const struct proc_ops kallsyms_proc_ops = {
^
> kernel/kallsyms.c:1082:30: warning: unused variable
'kallmodsyms_proc_ops' [-Wunused-const-variable]
static const struct
proc_ops kallmodsyms_proc_ops = {
^
3 warnings generated.
vim +/kallmodsyms_proc_ops +1082 kernel/kallsyms.c
1080
1081 #ifdef CONFIG_KALLMODSYMS
1082 static const struct proc_ops kallmodsyms_proc_ops = {
1083 .proc_open = kallmodsyms_open,
1084 .proc_read = seq_read,
1085 .proc_lseek = seq_lseek,
1086 .proc_release = seq_release_private,
1087 };
1088 #endif
1089
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org