tree:
https://github.com/weiny2/linux-kernel.git lm-misc3
head: 80c335a89ca34e82fad340c46ee8fdd6cc908f2e
commit: 98755490c4ee337ec6b3d89ec434469b56c2cf99 [5/8] arch/kmap: Remove redundant arch
specific kmaps
config: mips-fuloong2e_defconfig (attached as .config)
compiler: mips64el-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 98755490c4ee337ec6b3d89ec434469b56c2cf99
# 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 >>):
In file included from arch/mips/mm/cache.c:19:
arch/mips/include/asm/highmem.h: In function 'kmap':
> arch/mips/include/asm/highmem.h:52:15: error: implicit
declaration of function '__kmap'; did you mean 'kmap'?
[-Werror=implicit-function-declaration]
52 | void *addr = __kmap(page);
| ^~~~~~
| kmap
> arch/mips/include/asm/highmem.h:52:15: error: initialization of
'void *' from 'int' makes pointer from integer without a cast
[-Werror=int-conversion]
> arch/mips/include/asm/highmem.h:54:2: error: implicit declaration of function
'flush_tlb_one' [-Werror=implicit-function-declaration]
54 |
flush_tlb_one((unsigned long)addr);
| ^~~~~~~~~~~~~
cc1: all warnings being treated as errors
--
In file included from arch/mips/mm/fault.c:28:
arch/mips/include/asm/highmem.h: In function 'kmap':
> arch/mips/include/asm/highmem.h:52:15: error: implicit
declaration of function '__kmap'; did you mean 'kmap'?
[-Werror=implicit-function-declaration]
52 | void *addr = __kmap(page);
| ^~~~~~
| kmap
> arch/mips/include/asm/highmem.h:52:15: error: initialization of
'void *' from 'int' makes pointer from integer without a cast
[-Werror=int-conversion]
cc1: all warnings being treated as errors
vim +52 arch/mips/include/asm/highmem.h
48
49 #define ARCH_HAS_KMAP
50 static inline void *kmap(struct page *page)
51 {
52 void *addr = __kmap(page);
53
54 flush_tlb_one((unsigned long)addr);
55 return addr;
56 }
57 extern void * kmap_high(struct page *page);
58 extern void kunmap_high(struct page *page);
59
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org