tree:
https://git.kernel.org/pub/scm/linux/kernel/git/tglx/devel.git highmem
head: 4025d33ae44c6f748765f64dcb1c97ed4b55e756
commit: eb739dc8f2b6808531c2f47bad9cb3f29c040ae2 [17/18] mm/highmem: Provide kmap_local*
config: x86_64-randconfig-a013-20201030 (attached as .config)
compiler: clang version 12.0.0 (
https://github.com/llvm/llvm-project
fa5a13276764a2657b3571fa3c57b07ee5d2d661)
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
# install x86_64 cross compiling tool for clang build
# apt-get install binutils-x86-64-linux-gnu
#
https://git.kernel.org/pub/scm/linux/kernel/git/tglx/devel.git/commit/?id...
git remote add tglx-devel
https://git.kernel.org/pub/scm/linux/kernel/git/tglx/devel.git
git fetch --no-tags tglx-devel highmem
git checkout eb739dc8f2b6808531c2f47bad9cb3f29c040ae2
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
In file included from arch/x86/kernel/asm-offsets.c:13:
In file included from include/linux/suspend.h:5:
In file included from include/linux/swap.h:9:
In file included from include/linux/memcontrol.h:22:
In file included from include/linux/writeback.h:14:
In file included from include/linux/blk-cgroup.h:23:
In file included from include/linux/blkdev.h:14:
In file included from include/linux/pagemap.h:11:
> include/linux/highmem.h:265:2: error: implicit declaration of
function '__kunmap_local' [-Werror,-Wimplicit-function-declaration]
__kunmap_local(addr);
^
> include/linux/highmem.h:284:20: error: static declaration of
'__kunmap_local' follows non-static declaration
static inline void
__kunmap_local(void *addr)
^
include/linux/highmem.h:265:2: note: previous implicit declaration is here
__kunmap_local(addr);
^
2 errors generated.
make[2]: *** [scripts/Makefile.build:117: arch/x86/kernel/asm-offsets.s] Error 1
make[2]: Target '__build' not remade because of errors.
make[1]: *** [Makefile:1200: prepare0] Error 2
make[1]: Target 'prepare' not remade because of errors.
make: *** [Makefile:185: __sub-make] Error 2
make: Target 'prepare' not remade because of errors.
vim +/__kunmap_local +265 include/linux/highmem.h
262
263 static inline void __kunmap_atomic(void *addr)
264 {
265 __kunmap_local(addr);
266 }
267
268 static inline void *kmap_local_page(struct page *page)
269 {
270 migrate_disable();
271 return page_address(page);
272 }
273
274 static inline void *kmap_local_page_prot(struct page *page, pgprot_t prot)
275 {
276 return kmap_local_page(page);
277 }
278
279 static inline void *kmap_local_pfn(unsigned long pfn)
280 {
281 return kmap_local_page(pfn_to_page(pfn));
282 }
283
284 static inline void __kunmap_local(void *addr)
285 {
286 #ifdef ARCH_HAS_FLUSH_ON_KUNMAP
287 kunmap_flush_on_unmap(addr);
288 #endif
289 }
290
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org