tree: https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git tmp.tmp2 head: adcceb5eb7aee38e4a9c15bdf599655f0e1b1324 commit: 4392e2ebf7f46654e0f80914a847a293fbbb3e11 [299/364] sched/headers, fs: Simplify dependencies config: i386-defconfig (attached as .config) compiler: gcc-9 (Debian 9.3.0-22) 9.3.0 reproduce (this is a W=1 build): # https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git/commit/?id=4392e2ebf7f46654e0f80914a847a293fbbb3e11 git remote add tip https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git git fetch --no-tags tip tmp.tmp2 git checkout 4392e2ebf7f46654e0f80914a847a293fbbb3e11 # save the attached .config to linux build tree make W=1 ARCH=i386 If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All errors (new ones prefixed by >>): In file included from arch/x86/include/asm/page.h:76, from arch/x86/include/asm/processor.h:23, from include/linux/mutex.h:21, from include/linux/notifier.h:14, from include/linux/reboot.h:6, from arch/x86/kernel/crash.c:19: include/linux/kexec.h: In function 'page_to_boot_pfn': >> include/asm-generic/memory_model.h:34:55: error: 'mem_map' undeclared (first use in this function); did you mean 'memcmp'? 34 | #define __page_to_pfn(page) ((unsigned long)((page) - mem_map) + \ | ^~~~~~~ include/asm-generic/memory_model.h:81:21: note: in expansion of macro '__page_to_pfn' 81 | #define page_to_pfn __page_to_pfn | ^~~~~~~~~~~~~ include/linux/kexec.h:373:9: note: in expansion of macro 'page_to_pfn' 373 | return page_to_pfn(page); | ^~~~~~~~~~~ include/asm-generic/memory_model.h:34:55: note: each undeclared identifier is reported only once for each function it appears in 34 | #define __page_to_pfn(page) ((unsigned long)((page) - mem_map) + \ | ^~~~~~~ include/asm-generic/memory_model.h:81:21: note: in expansion of macro '__page_to_pfn' 81 | #define page_to_pfn __page_to_pfn | ^~~~~~~~~~~~~ include/linux/kexec.h:373:9: note: in expansion of macro 'page_to_pfn' 373 | return page_to_pfn(page); | ^~~~~~~~~~~ include/linux/kexec.h: In function 'boot_pfn_to_page': include/asm-generic/memory_model.h:33:29: error: 'mem_map' undeclared (first use in this function); did you mean 'memcmp'? 33 | #define __pfn_to_page(pfn) (mem_map + ((pfn) - ARCH_PFN_OFFSET)) | ^~~~~~~ include/asm-generic/memory_model.h:82:21: note: in expansion of macro '__pfn_to_page' 82 | #define pfn_to_page __pfn_to_page | ^~~~~~~~~~~~~ include/linux/kexec.h:380:9: note: in expansion of macro 'pfn_to_page' 380 | return pfn_to_page(boot_pfn); | ^~~~~~~~~~~ In file included from include/linux/uaccess.h:11, from include/linux/compat.h:19, from include/linux/kexec.h:25, from arch/x86/kernel/crash.c:20: arch/x86/kernel/crash.c: At top level: arch/x86/include/asm/uaccess.h:46:20: warning: 'pagefault_disabled' used but never defined 46 | static inline bool pagefault_disabled(void); | ^~~~~~~~~~~~~~~~~~ -- In file included from arch/x86/include/asm/page.h:76, from arch/x86/include/asm/user_32.h:5, from arch/x86/include/asm/user.h:6, from include/linux/user.h:1, from include/linux/elfcore.h:5, from include/linux/crash_core.h:6, from include/linux/kexec.h:18, from include/linux/crash_dump.h:5, from arch/x86/kernel/e820.c:12: include/linux/kexec.h: In function 'page_to_boot_pfn': >> include/asm-generic/memory_model.h:34:55: error: 'mem_map' undeclared (first use in this function); did you mean 'memcmp'? 34 | #define __page_to_pfn(page) ((unsigned long)((page) - mem_map) + \ | ^~~~~~~ include/asm-generic/memory_model.h:81:21: note: in expansion of macro '__page_to_pfn' 81 | #define page_to_pfn __page_to_pfn | ^~~~~~~~~~~~~ include/linux/kexec.h:373:9: note: in expansion of macro 'page_to_pfn' 373 | return page_to_pfn(page); | ^~~~~~~~~~~ include/asm-generic/memory_model.h:34:55: note: each undeclared identifier is reported only once for each function it appears in 34 | #define __page_to_pfn(page) ((unsigned long)((page) - mem_map) + \ | ^~~~~~~ include/asm-generic/memory_model.h:81:21: note: in expansion of macro '__page_to_pfn' 81 | #define page_to_pfn __page_to_pfn | ^~~~~~~~~~~~~ include/linux/kexec.h:373:9: note: in expansion of macro 'page_to_pfn' 373 | return page_to_pfn(page); | ^~~~~~~~~~~ include/linux/kexec.h: In function 'boot_pfn_to_page': include/asm-generic/memory_model.h:33:29: error: 'mem_map' undeclared (first use in this function); did you mean 'memcmp'? 33 | #define __pfn_to_page(pfn) (mem_map + ((pfn) - ARCH_PFN_OFFSET)) | ^~~~~~~ include/asm-generic/memory_model.h:82:21: note: in expansion of macro '__pfn_to_page' 82 | #define pfn_to_page __pfn_to_page | ^~~~~~~~~~~~~ include/linux/kexec.h:380:9: note: in expansion of macro 'pfn_to_page' 380 | return pfn_to_page(boot_pfn); | ^~~~~~~~~~~ In file included from include/linux/uaccess.h:11, from include/linux/compat.h:19, from include/linux/kexec.h:25, from include/linux/crash_dump.h:5, from arch/x86/kernel/e820.c:12: arch/x86/kernel/e820.c: At top level: arch/x86/include/asm/uaccess.h:46:20: warning: 'pagefault_disabled' used but never defined 46 | static inline bool pagefault_disabled(void); | ^~~~~~~~~~~~~~~~~~ -- In file included from arch/x86/include/asm/page.h:76, from arch/x86/include/asm/user_32.h:5, from arch/x86/include/asm/user.h:6, from include/linux/user.h:1, from include/linux/elfcore.h:5, from include/linux/crash_core.h:6, from include/linux/kexec.h:18, from include/linux/crash_dump.h:5, from arch/x86/kernel/setup.c:9: include/linux/kexec.h: In function 'page_to_boot_pfn': >> include/asm-generic/memory_model.h:34:55: error: 'mem_map' undeclared (first use in this function); did you mean 'memcmp'? 34 | #define __page_to_pfn(page) ((unsigned long)((page) - mem_map) + \ | ^~~~~~~ include/asm-generic/memory_model.h:81:21: note: in expansion of macro '__page_to_pfn' 81 | #define page_to_pfn __page_to_pfn | ^~~~~~~~~~~~~ include/linux/kexec.h:373:9: note: in expansion of macro 'page_to_pfn' 373 | return page_to_pfn(page); | ^~~~~~~~~~~ include/asm-generic/memory_model.h:34:55: note: each undeclared identifier is reported only once for each function it appears in 34 | #define __page_to_pfn(page) ((unsigned long)((page) - mem_map) + \ | ^~~~~~~ include/asm-generic/memory_model.h:81:21: note: in expansion of macro '__page_to_pfn' 81 | #define page_to_pfn __page_to_pfn | ^~~~~~~~~~~~~ include/linux/kexec.h:373:9: note: in expansion of macro 'page_to_pfn' 373 | return page_to_pfn(page); | ^~~~~~~~~~~ include/linux/kexec.h: In function 'boot_pfn_to_page': include/asm-generic/memory_model.h:33:29: error: 'mem_map' undeclared (first use in this function); did you mean 'memcmp'? 33 | #define __pfn_to_page(pfn) (mem_map + ((pfn) - ARCH_PFN_OFFSET)) | ^~~~~~~ include/asm-generic/memory_model.h:82:21: note: in expansion of macro '__pfn_to_page' 82 | #define pfn_to_page __pfn_to_page | ^~~~~~~~~~~~~ include/linux/kexec.h:380:9: note: in expansion of macro 'pfn_to_page' 380 | return pfn_to_page(boot_pfn); | ^~~~~~~~~~~ In file included from include/linux/uaccess.h:11, from include/linux/compat.h:19, from include/linux/kexec.h:25, from include/linux/crash_dump.h:5, from arch/x86/kernel/setup.c:9: arch/x86/kernel/setup.c: At top level: arch/x86/include/asm/uaccess.h:46:20: warning: 'pagefault_disabled' used but never defined 46 | static inline bool pagefault_disabled(void); | ^~~~~~~~~~~~~~~~~~ -- In file included from arch/x86/include/asm/page.h:76, from arch/x86/include/asm/user_32.h:5, from arch/x86/include/asm/user.h:6, from include/linux/user.h:1, from include/linux/elfcore.h:5, from include/linux/crash_core.h:6, from include/linux/kexec.h:18, from kernel/reboot.c:12: include/linux/kexec.h: In function 'page_to_boot_pfn': >> include/asm-generic/memory_model.h:34:55: error: 'mem_map' undeclared (first use in this function); did you mean 'memcmp'? 34 | #define __page_to_pfn(page) ((unsigned long)((page) - mem_map) + \ | ^~~~~~~ include/asm-generic/memory_model.h:81:21: note: in expansion of macro '__page_to_pfn' 81 | #define page_to_pfn __page_to_pfn | ^~~~~~~~~~~~~ include/linux/kexec.h:373:9: note: in expansion of macro 'page_to_pfn' 373 | return page_to_pfn(page); | ^~~~~~~~~~~ include/asm-generic/memory_model.h:34:55: note: each undeclared identifier is reported only once for each function it appears in 34 | #define __page_to_pfn(page) ((unsigned long)((page) - mem_map) + \ | ^~~~~~~ include/asm-generic/memory_model.h:81:21: note: in expansion of macro '__page_to_pfn' 81 | #define page_to_pfn __page_to_pfn | ^~~~~~~~~~~~~ include/linux/kexec.h:373:9: note: in expansion of macro 'page_to_pfn' 373 | return page_to_pfn(page); | ^~~~~~~~~~~ include/linux/kexec.h: In function 'boot_pfn_to_page': include/asm-generic/memory_model.h:33:29: error: 'mem_map' undeclared (first use in this function); did you mean 'memcmp'? 33 | #define __pfn_to_page(pfn) (mem_map + ((pfn) - ARCH_PFN_OFFSET)) | ^~~~~~~ include/asm-generic/memory_model.h:82:21: note: in expansion of macro '__pfn_to_page' 82 | #define pfn_to_page __pfn_to_page | ^~~~~~~~~~~~~ include/linux/kexec.h:380:9: note: in expansion of macro 'pfn_to_page' 380 | return pfn_to_page(boot_pfn); | ^~~~~~~~~~~ In file included from include/linux/uaccess.h:11, from include/linux/compat.h:19, from include/linux/kexec.h:25, from kernel/reboot.c:12: kernel/reboot.c: At top level: arch/x86/include/asm/uaccess.h:46:20: warning: 'pagefault_disabled' used but never defined 46 | static inline bool pagefault_disabled(void); | ^~~~~~~~~~~~~~~~~~ -- In file included from arch/x86/include/asm/page.h:76, from arch/x86/include/asm/user_32.h:5, from arch/x86/include/asm/user.h:6, from include/linux/user.h:1, from include/linux/elfcore.h:5, from include/linux/crash_core.h:6, from include/linux/kexec.h:18, from include/linux/crash_dump.h:5, from kernel/crash_dump.c:3: include/linux/kexec.h: In function 'page_to_boot_pfn': >> include/asm-generic/memory_model.h:34:55: error: 'mem_map' undeclared (first use in this function); did you mean 'memcmp'? 34 | #define __page_to_pfn(page) ((unsigned long)((page) - mem_map) + \ | ^~~~~~~ include/asm-generic/memory_model.h:81:21: note: in expansion of macro '__page_to_pfn' 81 | #define page_to_pfn __page_to_pfn | ^~~~~~~~~~~~~ include/linux/kexec.h:373:9: note: in expansion of macro 'page_to_pfn' 373 | return page_to_pfn(page); | ^~~~~~~~~~~ include/asm-generic/memory_model.h:34:55: note: each undeclared identifier is reported only once for each function it appears in 34 | #define __page_to_pfn(page) ((unsigned long)((page) - mem_map) + \ | ^~~~~~~ include/asm-generic/memory_model.h:81:21: note: in expansion of macro '__page_to_pfn' 81 | #define page_to_pfn __page_to_pfn | ^~~~~~~~~~~~~ include/linux/kexec.h:373:9: note: in expansion of macro 'page_to_pfn' 373 | return page_to_pfn(page); | ^~~~~~~~~~~ include/linux/kexec.h: In function 'boot_pfn_to_page': include/asm-generic/memory_model.h:33:29: error: 'mem_map' undeclared (first use in this function); did you mean 'memcmp'? 33 | #define __pfn_to_page(pfn) (mem_map + ((pfn) - ARCH_PFN_OFFSET)) | ^~~~~~~ include/asm-generic/memory_model.h:82:21: note: in expansion of macro '__pfn_to_page' 82 | #define pfn_to_page __pfn_to_page | ^~~~~~~~~~~~~ include/linux/kexec.h:380:9: note: in expansion of macro 'pfn_to_page' 380 | return pfn_to_page(boot_pfn); | ^~~~~~~~~~~ In file included from include/linux/uaccess.h:11, from include/linux/compat.h:19, from include/linux/kexec.h:25, from include/linux/crash_dump.h:5, from kernel/crash_dump.c:3: kernel/crash_dump.c: At top level: arch/x86/include/asm/uaccess.h:46:20: warning: 'pagefault_disabled' used but never defined 46 | static inline bool pagefault_disabled(void); | ^~~~~~~~~~~~~~~~~~ -- In file included from arch/x86/include/asm/page.h:76, from arch/x86/include/asm/user_32.h:5, from arch/x86/include/asm/user.h:6, from include/linux/user.h:1, from include/linux/elfcore.h:5, from include/linux/crash_core.h:6, from include/linux/kexec.h:18, from lib/dump_stack.c:13: include/linux/kexec.h: In function 'page_to_boot_pfn': >> include/asm-generic/memory_model.h:34:55: error: 'mem_map' undeclared (first use in this function); did you mean 'memcmp'? 34 | #define __page_to_pfn(page) ((unsigned long)((page) - mem_map) + \ | ^~~~~~~ include/asm-generic/memory_model.h:81:21: note: in expansion of macro '__page_to_pfn' 81 | #define page_to_pfn __page_to_pfn | ^~~~~~~~~~~~~ include/linux/kexec.h:373:9: note: in expansion of macro 'page_to_pfn' 373 | return page_to_pfn(page); | ^~~~~~~~~~~ include/asm-generic/memory_model.h:34:55: note: each undeclared identifier is reported only once for each function it appears in 34 | #define __page_to_pfn(page) ((unsigned long)((page) - mem_map) + \ | ^~~~~~~ include/asm-generic/memory_model.h:81:21: note: in expansion of macro '__page_to_pfn' 81 | #define page_to_pfn __page_to_pfn | ^~~~~~~~~~~~~ include/linux/kexec.h:373:9: note: in expansion of macro 'page_to_pfn' 373 | return page_to_pfn(page); | ^~~~~~~~~~~ include/linux/kexec.h: In function 'boot_pfn_to_page': include/asm-generic/memory_model.h:33:29: error: 'mem_map' undeclared (first use in this function); did you mean 'memcmp'? 33 | #define __pfn_to_page(pfn) (mem_map + ((pfn) - ARCH_PFN_OFFSET)) | ^~~~~~~ include/asm-generic/memory_model.h:82:21: note: in expansion of macro '__pfn_to_page' 82 | #define pfn_to_page __pfn_to_page | ^~~~~~~~~~~~~ include/linux/kexec.h:380:9: note: in expansion of macro 'pfn_to_page' 380 | return pfn_to_page(boot_pfn); | ^~~~~~~~~~~ In file included from include/linux/uaccess.h:11, from include/linux/compat.h:19, from include/linux/kexec.h:25, from lib/dump_stack.c:13: lib/dump_stack.c: At top level: arch/x86/include/asm/uaccess.h:46:20: warning: 'pagefault_disabled' used but never defined 46 | static inline bool pagefault_disabled(void); | ^~~~~~~~~~~~~~~~~~ vim +34 include/asm-generic/memory_model.h a117e66ed45ac0 KAMEZAWA Hiroyuki 2006-03-27 32 67de648211fa04 Andy Whitcroft 2006-06-23 33 #define __pfn_to_page(pfn) (mem_map + ((pfn) - ARCH_PFN_OFFSET)) 67de648211fa04 Andy Whitcroft 2006-06-23 @34 #define __page_to_pfn(page) ((unsigned long)((page) - mem_map) + \ a117e66ed45ac0 KAMEZAWA Hiroyuki 2006-03-27 35 ARCH_PFN_OFFSET) a117e66ed45ac0 KAMEZAWA Hiroyuki 2006-03-27 36 #elif defined(CONFIG_DISCONTIGMEM) a117e66ed45ac0 KAMEZAWA Hiroyuki 2006-03-27 37 :::::: The code at line 34 was first introduced by commit :::::: 67de648211fa041fe08a0c25241a4980bbb90698 [PATCH] squash duplicate page_to_pfn and pfn_to_page :::::: TO: Andy Whitcroft :::::: CC: Linus Torvalds --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org