Messages in this thread | | | Date | Fri, 10 Jun 2022 15:08:21 +0800 | From | kernel test robot <> | Subject | [norov:fns 8/8] lib/find_bit.c:105:1: error: redefinition of '__ksymtab__find_first_bit' |
| |
tree: https://github.com/norov/linux fns head: 785e34f40a6ad867ddc1fccf032a54bb41563865 commit: 785e34f40a6ad867ddc1fccf032a54bb41563865 [8/8] fns config: hexagon-randconfig-r041-20220609 (https://download.01.org/0day-ci/archive/20220610/202206101503.SiKOLRsZ-lkp@intel.com/config) compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project 70d35fe1257e429266b83025997b400e9f79110e) 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://github.com/norov/linux/commit/785e34f40a6ad867ddc1fccf032a54bb41563865 git remote add norov https://github.com/norov/linux git fetch --no-tags norov fns git checkout 785e34f40a6ad867ddc1fccf032a54bb41563865 # 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=hexagon SHELL=/bin/bash
If you fix the issue, kindly add following tag where applicable Reported-by: kernel test robot <lkp@intel.com>
All errors (new ones prefixed by >>):
>> lib/find_bit.c:105:1: error: redefinition of '__ksymtab__find_first_bit' EXPORT_SYMBOL(_find_first_bit); ^ include/linux/export.h:150:29: note: expanded from macro 'EXPORT_SYMBOL' #define EXPORT_SYMBOL(sym) _EXPORT_SYMBOL(sym, "") ^ include/linux/export.h:147:34: note: expanded from macro '_EXPORT_SYMBOL' #define _EXPORT_SYMBOL(sym, sec) __EXPORT_SYMBOL(sym, sec, "") ^ include/linux/export.h:140:39: note: expanded from macro '__EXPORT_SYMBOL' #define __EXPORT_SYMBOL(sym, sec, ns) ___EXPORT_SYMBOL(sym, sec, ns) ^ include/linux/export.h:96:2: note: expanded from macro '___EXPORT_SYMBOL' __KSYMTAB_ENTRY(sym, sec) ^ include/linux/export.h:57:36: note: expanded from macro '__KSYMTAB_ENTRY' static const struct kernel_symbol __ksymtab_##sym \ ^ <scratch space>:183:1: note: expanded from here __ksymtab__find_first_bit ^ lib/find_bit.c:89:1: note: previous definition is here EXPORT_SYMBOL(_find_first_bit); ^ include/linux/export.h:150:29: note: expanded from macro 'EXPORT_SYMBOL' #define EXPORT_SYMBOL(sym) _EXPORT_SYMBOL(sym, "") ^ include/linux/export.h:147:34: note: expanded from macro '_EXPORT_SYMBOL' #define _EXPORT_SYMBOL(sym, sec) __EXPORT_SYMBOL(sym, sec, "") ^ include/linux/export.h:140:39: note: expanded from macro '__EXPORT_SYMBOL' #define __EXPORT_SYMBOL(sym, sec, ns) ___EXPORT_SYMBOL(sym, sec, ns) ^ include/linux/export.h:96:2: note: expanded from macro '___EXPORT_SYMBOL' __KSYMTAB_ENTRY(sym, sec) ^ include/linux/export.h:57:36: note: expanded from macro '__KSYMTAB_ENTRY' static const struct kernel_symbol __ksymtab_##sym \ ^ <scratch space>:168:1: note: expanded from here __ksymtab__find_first_bit ^ 1 error generated.
vim +/__ksymtab__find_first_bit +105 lib/find_bit.c
91 92 unsigned long _find_nth_bit(const unsigned long *addr, unsigned long size, unsigned long n) 93 { 94 unsigned long idx, w; 95 96 for (idx = 0; idx * BITS_PER_LONG < size; idx++, n -= w) { 97 w = hweight_long(addr[idx]); 98 if (w >= n) 99 return min(idx * BITS_PER_LONG + fns(addr[idx], n), size); 100 } 101 102 return size; 103 104 } > 105 EXPORT_SYMBOL(_find_first_bit); 106
-- 0-DAY CI Kernel Test Service https://01.org/lkp
| |