tree:
https://github.com/weiny2/linux-kernel.git lm-kmap3
head: 6655fb2b681baf75040651697f2cd363cca7a1ef
commit: 0b3491ede9731d76ac3e373a78d1b83ad84ea584 [3/6] arch/kmap: Remove redundant arch
specific kmaps
config: xtensa-randconfig-a001-20200501 (attached as .config)
compiler: xtensa-linux-gcc (GCC) 9.3.0
reproduce:
wget
https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O
~/bin/make.cross
chmod +x ~/bin/make.cross
git checkout 0b3491ede9731d76ac3e373a78d1b83ad84ea584
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day GCC_VERSION=9.3.0 make.cross ARCH=xtensa
If you fix the issue, kindly add following tag as appropriate
Reported-by: kbuild test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
In file included from include/linux/pagemap.h:11,
from include/linux/mempolicy.h:16,
from kernel/fork.c:34:
> include/linux/highmem.h:49:21: error: redefinition of
'kmap'
49 | static inline void *kmap(struct page *page)
| ^~~~
In file included from include/linux/highmem.h:46,
from include/linux/pagemap.h:11,
from include/linux/mempolicy.h:16,
from kernel/fork.c:34:
arch/xtensa/include/asm/highmem.h:68:21: note: previous definition of 'kmap'
was here
68 | static inline void *kmap(struct page *page)
| ^~~~
vim +/kmap +49 include/linux/highmem.h
47
48 #ifndef ARCH_HAS_KMAP
49 static inline void *kmap(struct page *page)
50 {
51 return kmap_generic(page);
52 }
53 #endif
54
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org