tree: https://git.kernel.org/pub/scm/linux/kernel/git/s390/linux.git for-linus head: a84157ab6b358d6d08a4186f7ca7f7d3528caa61 commit: 1a446d170a34d84f72c50ede4086755c4497f518 [30/32] s390/mm: make the pxd_offset functions more robust config: s390-allyesconfig (attached as .config) compiler: s390x-linux-gnu-gcc (Debian 7.2.0-11) 7.2.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 1a446d170a34d84f72c50ede4086755c4497f518 # save the attached .config to linux build tree GCC_VERSION=7.2.0 make.cross ARCH=s390 If you fix the issue, kindly add following tag Reported-by: kbuild test robot <lkp@xxxxxxxxx> All error/warnings (new ones prefixed by >>): arch/s390/mm/kasan_init.c: In function 'kasan_copy_shadow': >> arch/s390/mm/kasan_init.c:372:15: error: implicit declaration of function 'pgd_offset_raw'; did you mean 'pgd_offset_k'? [-Werror=implicit-function-declaration] pg_dir_src = pgd_offset_raw(early_pg_dir, KASAN_SHADOW_START); ^~~~~~~~~~~~~~ pgd_offset_k >> arch/s390/mm/kasan_init.c:372:13: warning: assignment makes pointer from integer without a cast [-Wint-conversion] pg_dir_src = pgd_offset_raw(early_pg_dir, KASAN_SHADOW_START); ^ arch/s390/mm/kasan_init.c:373:13: warning: assignment makes pointer from integer without a cast [-Wint-conversion] pg_dir_dst = pgd_offset_raw(pg_dir, KASAN_SHADOW_START); ^ cc1: some warnings being treated as errors vim +372 arch/s390/mm/kasan_init.c 42db5ed8 Vasily Gorbik 2017-11-17 356 42db5ed8 Vasily Gorbik 2017-11-17 357 void __init kasan_copy_shadow(pgd_t *pg_dir) 42db5ed8 Vasily Gorbik 2017-11-17 358 { 42db5ed8 Vasily Gorbik 2017-11-17 359 /* 42db5ed8 Vasily Gorbik 2017-11-17 360 * At this point we are still running on early pages setup early_pg_dir, 42db5ed8 Vasily Gorbik 2017-11-17 361 * while swapper_pg_dir has just been initialized with identity mapping. 42db5ed8 Vasily Gorbik 2017-11-17 362 * Carry over shadow memory region from early_pg_dir to swapper_pg_dir. 42db5ed8 Vasily Gorbik 2017-11-17 363 */ 42db5ed8 Vasily Gorbik 2017-11-17 364 42db5ed8 Vasily Gorbik 2017-11-17 365 pgd_t *pg_dir_src; 42db5ed8 Vasily Gorbik 2017-11-17 366 pgd_t *pg_dir_dst; 42db5ed8 Vasily Gorbik 2017-11-17 367 p4d_t *p4_dir_src; 42db5ed8 Vasily Gorbik 2017-11-17 368 p4d_t *p4_dir_dst; 42db5ed8 Vasily Gorbik 2017-11-17 369 pud_t *pu_dir_src; 42db5ed8 Vasily Gorbik 2017-11-17 370 pud_t *pu_dir_dst; 42db5ed8 Vasily Gorbik 2017-11-17 371 42db5ed8 Vasily Gorbik 2017-11-17 @372 pg_dir_src = pgd_offset_raw(early_pg_dir, KASAN_SHADOW_START); 42db5ed8 Vasily Gorbik 2017-11-17 373 pg_dir_dst = pgd_offset_raw(pg_dir, KASAN_SHADOW_START); 42db5ed8 Vasily Gorbik 2017-11-17 374 p4_dir_src = p4d_offset(pg_dir_src, KASAN_SHADOW_START); 42db5ed8 Vasily Gorbik 2017-11-17 375 p4_dir_dst = p4d_offset(pg_dir_dst, KASAN_SHADOW_START); 42db5ed8 Vasily Gorbik 2017-11-17 376 if (!p4d_folded(*p4_dir_src)) { 42db5ed8 Vasily Gorbik 2017-11-17 377 /* 4 level paging */ 42db5ed8 Vasily Gorbik 2017-11-17 378 memcpy(p4_dir_dst, p4_dir_src, 42db5ed8 Vasily Gorbik 2017-11-17 379 (KASAN_SHADOW_SIZE >> P4D_SHIFT) * sizeof(p4d_t)); 42db5ed8 Vasily Gorbik 2017-11-17 380 return; 42db5ed8 Vasily Gorbik 2017-11-17 381 } 42db5ed8 Vasily Gorbik 2017-11-17 382 /* 3 level paging */ 42db5ed8 Vasily Gorbik 2017-11-17 383 pu_dir_src = pud_offset(p4_dir_src, KASAN_SHADOW_START); 42db5ed8 Vasily Gorbik 2017-11-17 384 pu_dir_dst = pud_offset(p4_dir_dst, KASAN_SHADOW_START); 42db5ed8 Vasily Gorbik 2017-11-17 385 memcpy(pu_dir_dst, pu_dir_src, 42db5ed8 Vasily Gorbik 2017-11-17 386 (KASAN_SHADOW_SIZE >> PUD_SHIFT) * sizeof(pud_t)); 42db5ed8 Vasily Gorbik 2017-11-17 387 } 135ff163 Vasily Gorbik 2017-11-20 388 :::::: The code at line 372 was first introduced by commit :::::: 42db5ed86090d8e57ca08bfd162a10be6320cc49 s390/kasan: add initialization code and enable it :::::: TO: Vasily Gorbik <gor@xxxxxxxxxxxxx> :::::: CC: Martin Schwidefsky <schwidefsky@xxxxxxxxxx> --- 0-DAY kernel test infrastructure Open Source Technology Center https://lists.01.org/pipermail/kbuild-all Intel Corporation
Attachment:
.config.gz
Description: application/gzip