tree:
https://github.com/weiny2/linux-kernel.git lm-misc2
head: 5a6d87311c316d39441135e326dd3b9f9c000a96
commit: f503e8c823f1c2082320e0134e4d5518f19a74f4 [5/8] arch/kmap: Remove redundant arch
specific kmaps
config: mips-32r2_defconfig (attached as .config)
compiler: mips-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 f503e8c823f1c2082320e0134e4d5518f19a74f4
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day GCC_VERSION=9.3.0 make.cross ARCH=mips
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 >>):
> arch/mips/mm/highmem.c:16:7: error: redefinition of
'kmap'
16 | void *kmap(struct page *page)
| ^~~~
In file included from arch/mips/mm/highmem.c:5:
include/linux/highmem.h:40:21: note: previous definition of 'kmap' was here
40 | static inline void *kmap(struct page *page)
| ^~~~
vim +/kmap +16 arch/mips/mm/highmem.c
bb86bf28aec6d0 Ralf Baechle 2009-04-25 14
f503e8c823f1c2 Ira Weiny 2020-04-01 15 #define ARCH_HAS_KMAP
3e4d3af501cccd Peter Zijlstra 2010-10-26 @16 void *kmap(struct page *page)
^1da177e4c3f41 Linus Torvalds 2005-04-16 17 {
5872dff84c5a8e Ira Weiny 2020-04-01 18 void *addr = __kmap(page);
^1da177e4c3f41 Linus Torvalds 2005-04-16 19
^1da177e4c3f41 Linus Torvalds 2005-04-16 20 flush_tlb_one((unsigned long)addr);
^1da177e4c3f41 Linus Torvalds 2005-04-16 21 return addr;
^1da177e4c3f41 Linus Torvalds 2005-04-16 22 }
3e4d3af501cccd Peter Zijlstra 2010-10-26 23 EXPORT_SYMBOL(kmap);
^1da177e4c3f41 Linus Torvalds 2005-04-16 24
:::::: The code at line 16 was first introduced by commit
:::::: 3e4d3af501cccdc8a8cca41bdbe57d54ad7e7e73 mm: stack based kmap_atomic()
:::::: TO: Peter Zijlstra <a.p.zijlstra(a)chello.nl>
:::::: CC: Linus Torvalds <torvalds(a)linux-foundation.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org