tree:
https://github.com/weiny2/linux-kernel.git lm-misc5
head: f505c1218258e2384473cd29cc8a5f0623a1a4b2
commit: 8de59f69a0734d4181afd04f3d2ef17d31ecd191 [6/9] arch/kmap: Remove redundant arch
specific kmaps
config: csky-alldefconfig (attached as .config)
compiler: csky-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 8de59f69a0734d4181afd04f3d2ef17d31ecd191
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day GCC_VERSION=9.3.0 make.cross ARCH=csky
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/blkdev.h:16,
from kernel//sched/sched.h:39,
from kernel//sched/core.c:9:
> include/linux/highmem.h:40:21: error: static declaration of
'kmap' follows non-static declaration
40 | static inline void
*kmap(struct page *page)
| ^~~~
In file included from include/linux/highmem.h:37,
from include/linux/pagemap.h:11,
from include/linux/blkdev.h:16,
from kernel//sched/sched.h:39,
from kernel//sched/core.c:9:
arch/csky/include/asm/highmem.h:37:14: note: previous declaration of 'kmap' was
here
37 | extern void *kmap(struct page *page);
| ^~~~
vim +/kmap +40 include/linux/highmem.h
38
39 #ifndef ARCH_HAS_KMAP
40 static inline void *kmap(struct page *page)
41 {
42 return __kmap(page);
43 }
44 #endif
45
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org