Hi Chen,

[auto build test ERROR on tip/x86/core -- if it's inappropriate base, please 
suggest rules for selecting the more suitable base]

url:    
https://github.com/0day-ci/linux/commits/Chen-Yu/PM-hibernate-Print-the-possible-panic-reason-when-resuming-with-inconsistent-e820-map/20151015-030054
config: um-x86_64_defconfig (attached as .config)
reproduce:
        # save the attached .config to linux build tree
        make ARCH=um SUBARCH=x86_64

All error/warnings (new ones prefixed by >>):

   In file included from arch/x86/include/asm/suspend_64.h:9:0,
                    from arch/x86/include/asm/suspend.h:4,
                    from include/linux/suspend.h:11,
                    from drivers/base/syscore.c:12:
>> arch/x86/um/asm/desc.h:6:0: warning: "LDT_empty" redefined
    #define LDT_empty(info) (\
    ^
   In file included from arch/um/include/asm/mmu.h:10:0,
                    from include/linux/mm_types.h:16,
                    from include/linux/sched.h:27,
                    from include/linux/cgroup.h:11,
                    from include/linux/memcontrol.h:22,
                    from include/linux/swap.h:8,
                    from include/linux/suspend.h:4,
                    from drivers/base/syscore.c:12:
   arch/x86/um/asm/mm_context.h:63:0: note: this is the location of the 
previous definition
    #define LDT_empty(info) (_LDT_empty(info) && ((info)->lm == 0))
    ^
   In file included from arch/x86/include/asm/suspend.h:4:0,
                    from include/linux/suspend.h:11,
                    from drivers/base/syscore.c:12:
>> arch/x86/include/asm/suspend_64.h:29:18: error: field 'gdt_desc' has 
>> incomplete type
     struct desc_ptr gdt_desc;
                     ^
>> arch/x86/include/asm/suspend_64.h:46:13: error: 'restore_registers' 
>> redeclared as different kind of symbol
    extern char restore_registers;
                ^
   In file included from arch/um/include/asm/processor-generic.h:14:0,
                    from arch/x86/um/asm/processor.h:33,
                    from arch/x86/include/asm/atomic.h:6,
                    from include/linux/atomic.h:4,
                    from include/linux/mutex.h:18,
                    from drivers/base/syscore.c:10:
   arch/um/include/shared/registers.h:17:12: note: previous declaration of 
'restore_registers' was here
    extern int restore_registers(int pid, struct uml_pt_regs *regs);
               ^
   In file included from drivers/base/syscore.c:12:0:
   include/linux/suspend.h:366:20: error: static declaration of 
'arch_image_info_check' follows non-static declaration
    static inline bool arch_image_info_check(const char *new,
                       ^
   In file included from include/linux/suspend.h:11:0,
                    from drivers/base/syscore.c:12:
   arch/x86/include/asm/suspend.h:8:13: note: previous declaration of 
'arch_image_info_check' was here
    extern bool arch_image_info_check(const char *new, const char *old);
                ^
   In file included from drivers/base/syscore.c:12:0:
   include/linux/suspend.h:372:19: error: static declaration of 
'arch_image_info_save' follows non-static declaration
    static inline int arch_image_info_save(char *dst,
                      ^
   In file included from include/linux/suspend.h:11:0,
                    from drivers/base/syscore.c:12:
   arch/x86/include/asm/suspend.h:7:12: note: previous declaration of 
'arch_image_info_save' was here
    extern int arch_image_info_save(char *dst, char *src, unsigned int 
limit_len);
               ^

vim +/gdt_desc +29 arch/x86/include/asm/suspend_64.h

^1da177e include/asm-x86_64/suspend.h      Linus Torvalds        2005-04-16  23 
        unsigned long gs_base, gs_kernel_base, fs_base;
8d783b3e include/asm-x86_64/suspend.h      Pavel Machek          2005-06-25  24 
        unsigned long cr0, cr2, cr3, cr4, cr8;
85a0e753 arch/x86/include/asm/suspend_64.h Ondrej Zary           2010-06-08  25 
        u64 misc_enable;
85a0e753 arch/x86/include/asm/suspend_64.h Ondrej Zary           2010-06-08  26 
        bool misc_enable_saved;
3c321bce include/asm-x86_64/suspend.h      Vivek Goyal           2007-05-02  27 
        unsigned long efer;
cc456c4e arch/x86/include/asm/suspend_64.h Konrad Rzeszutek Wilk 2013-05-01  28 
        u16 gdt_pad; /* Unused */
cc456c4e arch/x86/include/asm/suspend_64.h Konrad Rzeszutek Wilk 2013-05-01 @29 
        struct desc_ptr gdt_desc;
^1da177e include/asm-x86_64/suspend.h      Linus Torvalds        2005-04-16  30 
        u16 idt_pad;
^1da177e include/asm-x86_64/suspend.h      Linus Torvalds        2005-04-16  31 
        u16 idt_limit;
^1da177e include/asm-x86_64/suspend.h      Linus Torvalds        2005-04-16  32 
        unsigned long idt_base;
^1da177e include/asm-x86_64/suspend.h      Linus Torvalds        2005-04-16  33 
        u16 ldt;
^1da177e include/asm-x86_64/suspend.h      Linus Torvalds        2005-04-16  34 
        u16 tss;
^1da177e include/asm-x86_64/suspend.h      Linus Torvalds        2005-04-16  35 
        unsigned long tr;
^1da177e include/asm-x86_64/suspend.h      Linus Torvalds        2005-04-16  36 
        unsigned long safety;
^1da177e include/asm-x86_64/suspend.h      Linus Torvalds        2005-04-16  37 
        unsigned long return_address;
^1da177e include/asm-x86_64/suspend.h      Linus Torvalds        2005-04-16  38 
 } __attribute__((packed));
^1da177e include/asm-x86_64/suspend.h      Linus Torvalds        2005-04-16  39 
 
^1da177e include/asm-x86_64/suspend.h      Linus Torvalds        2005-04-16  40 
 #define loaddebug(thread,register) \
2b514e74 include/asm-x86_64/suspend.h      Jan Beulich           2006-03-25  41 
        set_debugreg((thread)->debugreg##register, register)
^1da177e include/asm-x86_64/suspend.h      Linus Torvalds        2005-04-16  42 
 
^1da177e include/asm-x86_64/suspend.h      Linus Torvalds        2005-04-16  43 
 /* routines for saving/restoring kernel state */
^1da177e include/asm-x86_64/suspend.h      Linus Torvalds        2005-04-16  44 
 extern int acpi_save_state_mem(void);
d158cbdf include/asm-x86/suspend_64.h      Rafael J. Wysocki     2007-10-18  45 
 extern char core_restore_code;
d158cbdf include/asm-x86/suspend_64.h      Rafael J. Wysocki     2007-10-18 @46 
 extern char restore_registers;
0de80bcc include/asm-x86/suspend_64.h      Rafael J. Wysocki     2007-10-23  47 
 
1965aae3 arch/x86/include/asm/suspend_64.h H. Peter Anvin        2008-10-22  48 
 #endif /* _ASM_X86_SUSPEND_64_H */

:::::: The code at line 29 was first introduced by commit
:::::: cc456c4e7cac3837a86aaa7ca3cb9f488d44d196 x86, gdt, hibernate: Store/load 
GDT for hibernate path.

:::::: TO: Konrad Rzeszutek Wilk <[email protected]>
:::::: CC: H. Peter Anvin <[email protected]>

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

Attachment: .config.gz
Description: Binary data

Reply via email to