Hi Xunlei, [auto build test ERROR on next-20170605] [also build test ERROR on v4.12-rc4] [cannot apply to linus/master linux/master s390/features v4.9-rc8 v4.9-rc7 v4.9-rc6] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/Xunlei-Pang/s390-crash-Fix-KEXEC_NOTE_BYTES-definition/20170610-173047 config: arm-sa1100 (attached as .config) compiler: arm-linux-gnueabi-gcc (Debian 6.1.1-9) 6.1.1 20160705 reproduce: wget https://raw.githubusercontent.com/01org/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # save the attached .config to linux build tree make.cross ARCH=arm All error/warnings (new ones prefixed by >>): In file included from arch/arm/include/asm/memory.h:378:0, from arch/arm/include/asm/page.h:165, from arch/arm/include/asm/thread_info.h:17, from include/linux/thread_info.h:37, from include/asm-generic/preempt.h:4, from ./arch/arm/include/generated/asm/preempt.h:1, from include/linux/preempt.h:80, from include/linux/spinlock.h:50, from include/linux/seqlock.h:35, from include/linux/time.h:5, from include/linux/efi.h:16, from arch/arm/kernel/setup.c:10: arch/arm/include/asm/kexec.h: In function 'page_to_boot_pfn': >> include/asm-generic/memory_model.h:63:14: error: implicit declaration of function 'page_to_section' [-Werror=implicit-function-declaration] int __sec = page_to_section(__pg); \ ^ include/asm-generic/memory_model.h:80:21: note: in expansion of macro '__page_to_pfn' #define page_to_pfn __page_to_pfn ^~~~~~~~~~~~~ arch/arm/include/asm/kexec.h:70:9: note: in expansion of macro 'page_to_pfn' return page_to_pfn(page) + (arch_phys_to_idmap_offset >> PAGE_SHIFT); ^~~~~~~~~~~ In file included from include/linux/pid_namespace.h:6:0, from include/linux/ptrace.h:9, from include/uapi/linux/elfcore.h:7, from include/linux/elfcore.h:9, from include/linux/crash_core.h:5, from include/linux/kexec.h:27, from arch/arm/kernel/setup.c:24: include/linux/mm.h: At top level: >> include/linux/mm.h:979:29: error: conflicting types for 'page_to_section' static inline unsigned long page_to_section(const struct page *page) ^~~~~~~~~~~~~~~ In file included from arch/arm/include/asm/memory.h:378:0, from arch/arm/include/asm/page.h:165, from arch/arm/include/asm/thread_info.h:17, from include/linux/thread_info.h:37, from include/asm-generic/preempt.h:4, from ./arch/arm/include/generated/asm/preempt.h:1, from include/linux/preempt.h:80, from include/linux/spinlock.h:50, from include/linux/seqlock.h:35, from include/linux/time.h:5, from include/linux/efi.h:16, from arch/arm/kernel/setup.c:10: include/asm-generic/memory_model.h:63:14: note: previous implicit declaration of 'page_to_section' was here int __sec = page_to_section(__pg); \ ^ include/asm-generic/memory_model.h:80:21: note: in expansion of macro '__page_to_pfn' #define page_to_pfn __page_to_pfn ^~~~~~~~~~~~~ arch/arm/include/asm/kexec.h:70:9: note: in expansion of macro 'page_to_pfn' return page_to_pfn(page) + (arch_phys_to_idmap_offset >> PAGE_SHIFT); ^~~~~~~~~~~ cc1: some warnings being treated as errors -- In file included from arch/arm/include/asm/memory.h:378:0, from arch/arm/include/asm/page.h:165, from arch/arm/include/asm/thread_info.h:17, from include/linux/thread_info.h:37, from include/asm-generic/preempt.h:4, from ./arch/arm/include/generated/asm/preempt.h:1, from include/linux/preempt.h:80, from include/linux/spinlock.h:50, from arch/arm/kernel/traps.c:18: arch/arm/include/asm/kexec.h: In function 'page_to_boot_pfn': >> include/asm-generic/memory_model.h:63:14: error: implicit declaration of function 'page_to_section' [-Werror=implicit-function-declaration] int __sec = page_to_section(__pg); \ ^ include/asm-generic/memory_model.h:80:21: note: in expansion of macro '__page_to_pfn' #define page_to_pfn __page_to_pfn ^~~~~~~~~~~~~ arch/arm/include/asm/kexec.h:70:9: note: in expansion of macro 'page_to_pfn' return page_to_pfn(page) + (arch_phys_to_idmap_offset >> PAGE_SHIFT); ^~~~~~~~~~~ include/asm-generic/memory_model.h:64:23: error: arithmetic on pointer to an incomplete type (unsigned long)(__pg - __section_mem_map_addr(__nr_to_section(__sec))); \ ^ include/asm-generic/memory_model.h:80:21: note: in expansion of macro '__page_to_pfn' #define page_to_pfn __page_to_pfn ^~~~~~~~~~~~~ arch/arm/include/asm/kexec.h:70:9: note: in expansion of macro 'page_to_pfn' return page_to_pfn(page) + (arch_phys_to_idmap_offset >> PAGE_SHIFT); ^~~~~~~~~~~ arch/arm/include/asm/kexec.h: In function 'boot_pfn_to_page': >> include/asm-generic/memory_model.h:69:9: error: invalid use of undefined type 'struct page' struct mem_section *__sec = __pfn_to_section(__pfn); \ ^ include/asm-generic/memory_model.h:81:21: note: in expansion of macro '__pfn_to_page' #define pfn_to_page __pfn_to_page ^~~~~~~~~~~~~ >> arch/arm/include/asm/kexec.h:76:9: note: in expansion of macro 'pfn_to_page' return pfn_to_page(boot_pfn - (arch_phys_to_idmap_offset >> PAGE_SHIFT)); ^~~~~~~~~~~ In file included from include/linux/pid_namespace.h:6:0, from include/linux/ptrace.h:9, from include/uapi/linux/elfcore.h:7, from include/linux/elfcore.h:9, from include/linux/crash_core.h:5, from include/linux/kexec.h:27, from arch/arm/kernel/traps.c:23: include/linux/mm.h: At top level: >> include/linux/mm.h:979:29: error: conflicting types for 'page_to_section' static inline unsigned long page_to_section(const struct page *page) ^~~~~~~~~~~~~~~ In file included from arch/arm/include/asm/memory.h:378:0, from arch/arm/include/asm/page.h:165, from arch/arm/include/asm/thread_info.h:17, from include/linux/thread_info.h:37, from include/asm-generic/preempt.h:4, from ./arch/arm/include/generated/asm/preempt.h:1, from include/linux/preempt.h:80, from include/linux/spinlock.h:50, from arch/arm/kernel/traps.c:18: include/asm-generic/memory_model.h:63:14: note: previous implicit declaration of 'page_to_section' was here int __sec = page_to_section(__pg); \ ^ include/asm-generic/memory_model.h:80:21: note: in expansion of macro '__page_to_pfn' #define page_to_pfn __page_to_pfn ^~~~~~~~~~~~~ arch/arm/include/asm/kexec.h:70:9: note: in expansion of macro 'page_to_pfn' return page_to_pfn(page) + (arch_phys_to_idmap_offset >> PAGE_SHIFT); ^~~~~~~~~~~ cc1: some warnings being treated as errors vim +/pfn_to_page +76 arch/arm/include/asm/kexec.h 0719392a arch/arm/include/asm/kexec.h Russell King 2016-08-02 60 #define phys_to_boot_phys phys_to_boot_phys 0719392a arch/arm/include/asm/kexec.h Russell King 2016-08-02 61 0719392a arch/arm/include/asm/kexec.h Russell King 2016-08-02 62 static inline phys_addr_t boot_phys_to_phys(unsigned long entry) 0719392a arch/arm/include/asm/kexec.h Russell King 2016-08-02 63 { 0719392a arch/arm/include/asm/kexec.h Russell King 2016-08-02 64 return idmap_to_phys(entry); 0719392a arch/arm/include/asm/kexec.h Russell King 2016-08-02 65 } 0719392a arch/arm/include/asm/kexec.h Russell King 2016-08-02 66 #define boot_phys_to_phys boot_phys_to_phys 0719392a arch/arm/include/asm/kexec.h Russell King 2016-08-02 67 0719392a arch/arm/include/asm/kexec.h Russell King 2016-08-02 68 static inline unsigned long page_to_boot_pfn(struct page *page) 0719392a arch/arm/include/asm/kexec.h Russell King 2016-08-02 69 { 0719392a arch/arm/include/asm/kexec.h Russell King 2016-08-02 70 return page_to_pfn(page) + (arch_phys_to_idmap_offset >> PAGE_SHIFT); 0719392a arch/arm/include/asm/kexec.h Russell King 2016-08-02 71 } 0719392a arch/arm/include/asm/kexec.h Russell King 2016-08-02 72 #define page_to_boot_pfn page_to_boot_pfn 0719392a arch/arm/include/asm/kexec.h Russell King 2016-08-02 73 0719392a arch/arm/include/asm/kexec.h Russell King 2016-08-02 74 static inline struct page *boot_pfn_to_page(unsigned long boot_pfn) 0719392a arch/arm/include/asm/kexec.h Russell King 2016-08-02 75 { 0719392a arch/arm/include/asm/kexec.h Russell King 2016-08-02 @76 return pfn_to_page(boot_pfn - (arch_phys_to_idmap_offset >> PAGE_SHIFT)); 0719392a arch/arm/include/asm/kexec.h Russell King 2016-08-02 77 } 0719392a arch/arm/include/asm/kexec.h Russell King 2016-08-02 78 #define boot_pfn_to_page boot_pfn_to_page 0719392a arch/arm/include/asm/kexec.h Russell King 2016-08-02 79 c587e4a6 include/asm-arm/kexec.h Richard Purdie 2007-02-06 80 #endif /* __ASSEMBLY__ */ c587e4a6 include/asm-arm/kexec.h Richard Purdie 2007-02-06 81 c587e4a6 include/asm-arm/kexec.h Richard Purdie 2007-02-06 82 #endif /* CONFIG_KEXEC */ c587e4a6 include/asm-arm/kexec.h Richard Purdie 2007-02-06 83 c587e4a6 include/asm-arm/kexec.h Richard Purdie 2007-02-06 84 #endif /* _ARM_KEXEC_H */ :::::: The code at line 76 was first introduced by commit :::::: 0719392a61a9dbc2c850bc7bd1a17efba953fcf5 ARM: kexec: fix kexec for Keystone 2 :::::: TO: Russell King <rmk+kernel@xxxxxxxxxxxxxxxx> :::::: CC: Linus Torvalds <torvalds@xxxxxxxxxxxxxxxxxxxx> --- 0-DAY kernel test infrastructure Open Source Technology Center https://lists.01.org/pipermail/kbuild-all Intel Corporation
Attachment:
.config.gz
Description: application/gzip