[mmotm:master 385/416] arch/x86/xen/enlighten.c:1326:7: error: implicit declaration of function 'kexec_crash_loaded'

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



tree:   git://git.cmpxchg.org/linux-mmotm.git master
head:   1cb69ccca4e672d274edd4b6191dc08aaa3884b4
commit: 4e3b8b59a79fb7a14132b0f375f2b0514368ddd3 [385/416] x86: dma-mapping: use unsigned long for dma_attrs
config: x86_64-acpi-redef (attached as .config)
compiler: gcc-6 (Debian 6.1.1-1) 6.1.1 20160430
reproduce:
        git checkout 4e3b8b59a79fb7a14132b0f375f2b0514368ddd3
        # save the attached .config to linux build tree
        make ARCH=x86_64 

All errors (new ones prefixed by >>):

   In file included from arch/x86/xen/enlighten.c:41:0:
   include/xen/xen.h:13:26: error: variable 'XEN_NATIVE' has initializer but incomplete type
    #define xen_domain_type  XEN_NATIVE
                             ^
   arch/x86/xen/enlighten.c:121:6: note: in expansion of macro 'xen_domain_type'
    enum xen_domain_type xen_domain_type = XEN_NATIVE;
         ^~~~~~~~~~~~~~~
   include/xen/xen.h:13:26: error: 'XEN_NATIVE' redeclared as different kind of symbol
    #define xen_domain_type  XEN_NATIVE
                             ^
   arch/x86/xen/enlighten.c:121:22: note: in expansion of macro 'xen_domain_type'
    enum xen_domain_type xen_domain_type = XEN_NATIVE;
                         ^~~~~~~~~~~~~~~
   include/xen/xen.h:5:2: note: previous definition of 'XEN_NATIVE' was here
     XEN_NATIVE,  /* running on bare hardware    */
     ^~~~~~~~~~
   arch/x86/xen/enlighten.c: In function 'xen_vcpu_setup':
   arch/x86/xen/enlighten.c:201:2: error: 'XEN_NATIVE' has an incomplete type 'enum XEN_NATIVE'
     if (xen_hvm_domain()) {
     ^~
   arch/x86/xen/enlighten.c:201:2: error: 'XEN_NATIVE' has an incomplete type 'enum XEN_NATIVE'
   arch/x86/xen/enlighten.c:201:2: error: 'XEN_NATIVE' has an incomplete type 'enum XEN_NATIVE'
   arch/x86/xen/enlighten.c: In function 'xen_running_on_version_or_later':
   arch/x86/xen/enlighten.c:286:2: error: 'XEN_NATIVE' has an incomplete type 'enum XEN_NATIVE'
     if (!xen_domain())
     ^~
   arch/x86/xen/enlighten.c:286:2: error: 'XEN_NATIVE' has an incomplete type 'enum XEN_NATIVE'
   In file included from arch/x86/include/asm/fixmap.h:156:0,
                    from arch/x86/include/asm/apic.h:11,
                    from arch/x86/include/asm/smp.h:12,
                    from include/linux/smp.h:59,
                    from include/linux/topology.h:33,
                    from include/linux/gfp.h:8,
                    from include/linux/device.h:29,
                    from include/linux/node.h:17,
                    from include/linux/cpu.h:16,
                    from arch/x86/xen/enlighten.c:14:
   arch/x86/xen/enlighten.c: In function 'xen_setup_shared_info':
   arch/x86/xen/enlighten.c:1116:14: error: 'FIX_PARAVIRT_BOOTMAP' undeclared (first use in this function)
      set_fixmap(FIX_PARAVIRT_BOOTMAP,
                 ^
   include/asm-generic/fixmap.h:64:15: note: in definition of macro 'set_fixmap'
     __set_fixmap(idx, phys, FIXMAP_PAGE_NORMAL)
                  ^~~
   arch/x86/xen/enlighten.c:1116:14: note: each undeclared identifier is reported only once for each function it appears in
      set_fixmap(FIX_PARAVIRT_BOOTMAP,
                 ^
   include/asm-generic/fixmap.h:64:15: note: in definition of macro 'set_fixmap'
     __set_fixmap(idx, phys, FIXMAP_PAGE_NORMAL)
                  ^~~
   arch/x86/xen/enlighten.c: In function 'xen_setup_vcpu_info_placement':
   arch/x86/xen/enlighten.c:1145:24: error: implicit declaration of function '__PV_IS_CALLEE_SAVE' [-Werror=implicit-function-declaration]
      pv_irq_ops.save_fl = __PV_IS_CALLEE_SAVE(xen_save_fl_direct);
                           ^~~~~~~~~~~~~~~~~~~
   arch/x86/xen/enlighten.c:1145:22: error: incompatible types when assigning to type 'struct paravirt_callee_save' from type 'int'
      pv_irq_ops.save_fl = __PV_IS_CALLEE_SAVE(xen_save_fl_direct);
                         ^
   arch/x86/xen/enlighten.c:1146:25: error: incompatible types when assigning to type 'struct paravirt_callee_save' from type 'int'
      pv_irq_ops.restore_fl = __PV_IS_CALLEE_SAVE(xen_restore_fl_direct);
                            ^
   arch/x86/xen/enlighten.c:1147:26: error: incompatible types when assigning to type 'struct paravirt_callee_save' from type 'int'
      pv_irq_ops.irq_disable = __PV_IS_CALLEE_SAVE(xen_irq_disable_direct);
                             ^
   arch/x86/xen/enlighten.c:1148:25: error: incompatible types when assigning to type 'struct paravirt_callee_save' from type 'int'
      pv_irq_ops.irq_enable = __PV_IS_CALLEE_SAVE(xen_irq_enable_direct);
                            ^
   arch/x86/xen/enlighten.c: At top level:
   arch/x86/xen/enlighten.c:1255:2: error: unknown field 'native_set_ldt' specified in initializer
     .set_ldt = xen_set_ldt,
     ^
   arch/x86/xen/enlighten.c:1255:13: error: initialization from incompatible pointer type [-Werror=incompatible-pointer-types]
     .set_ldt = xen_set_ldt,
                ^~~~~~~~~~~
   arch/x86/xen/enlighten.c:1255:13: note: (near initialization for 'xen_cpu_ops.load_gdt')
   arch/x86/xen/enlighten.c: In function 'xen_panic_event':
>> arch/x86/xen/enlighten.c:1326:7: error: implicit declaration of function 'kexec_crash_loaded' [-Werror=implicit-function-declaration]
     if (!kexec_crash_loaded())
          ^~~~~~~~~~~~~~~~~~
   arch/x86/xen/enlighten.c: In function 'xen_start_kernel':
   arch/x86/xen/enlighten.c:1543:2: error: 'XEN_NATIVE' has an incomplete type 'enum XEN_NATIVE'
     xen_domain_type = XEN_PV_DOMAIN;
     ^~~~~~~~~~~~~~~
   arch/x86/xen/enlighten.c: In function 'xen_hvm_need_lapic':
   arch/x86/xen/enlighten.c:1887:2: error: 'XEN_NATIVE' has an incomplete type 'enum XEN_NATIVE'
     if (xen_pv_domain())
     ^~
   arch/x86/xen/enlighten.c:1887:2: error: 'XEN_NATIVE' has an incomplete type 'enum XEN_NATIVE'
   arch/x86/xen/enlighten.c:1887:2: error: 'XEN_NATIVE' has an incomplete type 'enum XEN_NATIVE'
   arch/x86/xen/enlighten.c:1889:2: error: 'XEN_NATIVE' has an incomplete type 'enum XEN_NATIVE'
     if (!xen_hvm_domain())
     ^~
   arch/x86/xen/enlighten.c:1889:2: error: 'XEN_NATIVE' has an incomplete type 'enum XEN_NATIVE'
   arch/x86/xen/enlighten.c:1889:2: error: 'XEN_NATIVE' has an incomplete type 'enum XEN_NATIVE'
   arch/x86/xen/enlighten.c: In function 'xen_set_cpu_features':
   arch/x86/xen/enlighten.c:1899:2: error: 'XEN_NATIVE' has an incomplete type 'enum XEN_NATIVE'
     if (xen_pv_domain()) {
     ^~
   arch/x86/xen/enlighten.c:1899:2: error: 'XEN_NATIVE' has an incomplete type 'enum XEN_NATIVE'
   arch/x86/xen/enlighten.c:1899:2: error: 'XEN_NATIVE' has an incomplete type 'enum XEN_NATIVE'
   arch/x86/xen/enlighten.c: At top level:
   arch/x86/xen/enlighten.c:1905:14: error: variable 'x86_hyper_xen' has initializer but incomplete type
    const struct hypervisor_x86 x86_hyper_xen = {
                 ^~~~~~~~~~~~~~
   arch/x86/xen/enlighten.c:1906:2: error: unknown field 'name' specified in initializer
     .name   = "Xen",
     ^
   arch/x86/xen/enlighten.c:1906:12: warning: excess elements in struct initializer
     .name   = "Xen",
               ^~~~~
   arch/x86/xen/enlighten.c:1906:12: note: (near initialization for 'x86_hyper_xen')
   arch/x86/xen/enlighten.c:1907:2: error: unknown field 'detect' specified in initializer
     .detect   = xen_platform,
     ^
   arch/x86/xen/enlighten.c:1907:14: warning: excess elements in struct initializer
     .detect   = xen_platform,
                 ^~~~~~~~~~~~
   arch/x86/xen/enlighten.c:1907:14: note: (near initialization for 'x86_hyper_xen')
   arch/x86/xen/enlighten.c:1911:2: error: unknown field 'x2apic_available' specified in initializer
     .x2apic_available = xen_x2apic_para_available,
     ^
   arch/x86/xen/enlighten.c:1911:22: warning: excess elements in struct initializer
     .x2apic_available = xen_x2apic_para_available,
                         ^~~~~~~~~~~~~~~~~~~~~~~~~
   arch/x86/xen/enlighten.c:1911:22: note: (near initialization for 'x86_hyper_xen')
   arch/x86/xen/enlighten.c:1912:2: error: unknown field 'set_cpu_features' specified in initializer
     .set_cpu_features       = xen_set_cpu_features,
     ^
   arch/x86/xen/enlighten.c:1912:28: warning: excess elements in struct initializer
     .set_cpu_features       = xen_set_cpu_features,
                               ^~~~~~~~~~~~~~~~~~~~
   arch/x86/xen/enlighten.c:1912:28: note: (near initialization for 'x86_hyper_xen')
   In file included from arch/x86/xen/enlighten.c:41:0:
   include/xen/xen.h:13:26: error: storage size of 'XEN_NATIVE' isn't known
    #define xen_domain_type  XEN_NATIVE
                             ^
   arch/x86/xen/enlighten.c:121:22: note: in expansion of macro 'xen_domain_type'
    enum xen_domain_type xen_domain_type = XEN_NATIVE;
                         ^~~~~~~~~~~~~~~
   arch/x86/xen/enlighten.c:1905:29: error: storage size of 'x86_hyper_xen' isn't known
    const struct hypervisor_x86 x86_hyper_xen = {
                                ^~~~~~~~~~~~~
   cc1: some warnings being treated as errors

vim +/kexec_crash_loaded +1326 arch/x86/xen/enlighten.c

81e103f1 arch/x86/xen/enlighten.c  Jeremy Fitzhardinge 2008-04-17  1249  	.iret = xen_iret,
6fcac6d3 arch/x86/xen/enlighten.c  Jeremy Fitzhardinge 2008-07-08  1250  #ifdef CONFIG_X86_64
6fcac6d3 arch/x86/xen/enlighten.c  Jeremy Fitzhardinge 2008-07-08  1251  	.usergs_sysret64 = xen_sysret64,
6fcac6d3 arch/x86/xen/enlighten.c  Jeremy Fitzhardinge 2008-07-08  1252  #endif
5ead97c8 arch/i386/xen/enlighten.c Jeremy Fitzhardinge 2007-07-17  1253  
5ead97c8 arch/i386/xen/enlighten.c Jeremy Fitzhardinge 2007-07-17  1254  	.load_tr_desc = paravirt_nop,
5ead97c8 arch/i386/xen/enlighten.c Jeremy Fitzhardinge 2007-07-17 @1255  	.set_ldt = xen_set_ldt,
5ead97c8 arch/i386/xen/enlighten.c Jeremy Fitzhardinge 2007-07-17  1256  	.load_gdt = xen_load_gdt,
5ead97c8 arch/i386/xen/enlighten.c Jeremy Fitzhardinge 2007-07-17  1257  	.load_idt = xen_load_idt,
5ead97c8 arch/i386/xen/enlighten.c Jeremy Fitzhardinge 2007-07-17  1258  	.load_tls = xen_load_tls,
a8fc1089 arch/x86/xen/enlighten.c  Eduardo Habkost     2008-07-08  1259  #ifdef CONFIG_X86_64
a8fc1089 arch/x86/xen/enlighten.c  Eduardo Habkost     2008-07-08  1260  	.load_gs_index = xen_load_gs_index,
a8fc1089 arch/x86/xen/enlighten.c  Eduardo Habkost     2008-07-08  1261  #endif
5ead97c8 arch/i386/xen/enlighten.c Jeremy Fitzhardinge 2007-07-17  1262  
38ffbe66 arch/x86/xen/enlighten.c  Jeremy Fitzhardinge 2008-07-23  1263  	.alloc_ldt = xen_alloc_ldt,
38ffbe66 arch/x86/xen/enlighten.c  Jeremy Fitzhardinge 2008-07-23  1264  	.free_ldt = xen_free_ldt,
38ffbe66 arch/x86/xen/enlighten.c  Jeremy Fitzhardinge 2008-07-23  1265  
5ead97c8 arch/i386/xen/enlighten.c Jeremy Fitzhardinge 2007-07-17  1266  	.store_idt = native_store_idt,
5ead97c8 arch/i386/xen/enlighten.c Jeremy Fitzhardinge 2007-07-17  1267  	.store_tr = xen_store_tr,
5ead97c8 arch/i386/xen/enlighten.c Jeremy Fitzhardinge 2007-07-17  1268  
5ead97c8 arch/i386/xen/enlighten.c Jeremy Fitzhardinge 2007-07-17  1269  	.write_ldt_entry = xen_write_ldt_entry,
5ead97c8 arch/i386/xen/enlighten.c Jeremy Fitzhardinge 2007-07-17  1270  	.write_gdt_entry = xen_write_gdt_entry,
5ead97c8 arch/i386/xen/enlighten.c Jeremy Fitzhardinge 2007-07-17  1271  	.write_idt_entry = xen_write_idt_entry,
faca6227 arch/x86/xen/enlighten.c  H. Peter Anvin      2008-01-30  1272  	.load_sp0 = xen_load_sp0,
5ead97c8 arch/i386/xen/enlighten.c Jeremy Fitzhardinge 2007-07-17  1273  
5ead97c8 arch/i386/xen/enlighten.c Jeremy Fitzhardinge 2007-07-17  1274  	.set_iopl_mask = xen_set_iopl_mask,
5ead97c8 arch/i386/xen/enlighten.c Jeremy Fitzhardinge 2007-07-17  1275  	.io_delay = xen_io_delay,
5ead97c8 arch/i386/xen/enlighten.c Jeremy Fitzhardinge 2007-07-17  1276  
952d1d70 arch/x86/xen/enlighten.c  Jeremy Fitzhardinge 2008-07-08  1277  	/* Xen takes care of %gs when switching to usermode for us */
952d1d70 arch/x86/xen/enlighten.c  Jeremy Fitzhardinge 2008-07-08  1278  	.swapgs = paravirt_nop,
952d1d70 arch/x86/xen/enlighten.c  Jeremy Fitzhardinge 2008-07-08  1279  
224101ed arch/x86/xen/enlighten.c  Jeremy Fitzhardinge 2009-02-18  1280  	.start_context_switch = paravirt_start_context_switch,
224101ed arch/x86/xen/enlighten.c  Jeremy Fitzhardinge 2009-02-18  1281  	.end_context_switch = xen_end_context_switch,
93b1eab3 arch/x86/xen/enlighten.c  Jeremy Fitzhardinge 2007-10-16  1282  };
93b1eab3 arch/x86/xen/enlighten.c  Jeremy Fitzhardinge 2007-10-16  1283  
fefa629a arch/i386/xen/enlighten.c Jeremy Fitzhardinge 2007-07-17  1284  static void xen_reboot(int reason)
fefa629a arch/i386/xen/enlighten.c Jeremy Fitzhardinge 2007-07-17  1285  {
349c709f arch/x86/xen/enlighten.c  Jeremy Fitzhardinge 2008-05-26  1286  	struct sched_shutdown r = { .reason = reason };
65d0cf0b arch/x86/xen/enlighten.c  Boris Ostrovsky     2015-08-10  1287  	int cpu;
65d0cf0b arch/x86/xen/enlighten.c  Boris Ostrovsky     2015-08-10  1288  
65d0cf0b arch/x86/xen/enlighten.c  Boris Ostrovsky     2015-08-10  1289  	for_each_online_cpu(cpu)
65d0cf0b arch/x86/xen/enlighten.c  Boris Ostrovsky     2015-08-10  1290  		xen_pmu_finish(cpu);
349c709f arch/x86/xen/enlighten.c  Jeremy Fitzhardinge 2008-05-26  1291  
349c709f arch/x86/xen/enlighten.c  Jeremy Fitzhardinge 2008-05-26  1292  	if (HYPERVISOR_sched_op(SCHEDOP_shutdown, &r))
fefa629a arch/i386/xen/enlighten.c Jeremy Fitzhardinge 2007-07-17  1293  		BUG();
fefa629a arch/i386/xen/enlighten.c Jeremy Fitzhardinge 2007-07-17  1294  }
fefa629a arch/i386/xen/enlighten.c Jeremy Fitzhardinge 2007-07-17  1295  
fefa629a arch/i386/xen/enlighten.c Jeremy Fitzhardinge 2007-07-17  1296  static void xen_restart(char *msg)
fefa629a arch/i386/xen/enlighten.c Jeremy Fitzhardinge 2007-07-17  1297  {
fefa629a arch/i386/xen/enlighten.c Jeremy Fitzhardinge 2007-07-17  1298  	xen_reboot(SHUTDOWN_reboot);
fefa629a arch/i386/xen/enlighten.c Jeremy Fitzhardinge 2007-07-17  1299  }
fefa629a arch/i386/xen/enlighten.c Jeremy Fitzhardinge 2007-07-17  1300  
fefa629a arch/i386/xen/enlighten.c Jeremy Fitzhardinge 2007-07-17  1301  static void xen_emergency_restart(void)
fefa629a arch/i386/xen/enlighten.c Jeremy Fitzhardinge 2007-07-17  1302  {
fefa629a arch/i386/xen/enlighten.c Jeremy Fitzhardinge 2007-07-17  1303  	xen_reboot(SHUTDOWN_reboot);
fefa629a arch/i386/xen/enlighten.c Jeremy Fitzhardinge 2007-07-17  1304  }
fefa629a arch/i386/xen/enlighten.c Jeremy Fitzhardinge 2007-07-17  1305  
fefa629a arch/i386/xen/enlighten.c Jeremy Fitzhardinge 2007-07-17  1306  static void xen_machine_halt(void)
fefa629a arch/i386/xen/enlighten.c Jeremy Fitzhardinge 2007-07-17  1307  {
fefa629a arch/i386/xen/enlighten.c Jeremy Fitzhardinge 2007-07-17  1308  	xen_reboot(SHUTDOWN_poweroff);
fefa629a arch/i386/xen/enlighten.c Jeremy Fitzhardinge 2007-07-17  1309  }
fefa629a arch/i386/xen/enlighten.c Jeremy Fitzhardinge 2007-07-17  1310  
b2abe506 arch/x86/xen/enlighten.c  Tom Goetz           2011-05-16  1311  static void xen_machine_power_off(void)
b2abe506 arch/x86/xen/enlighten.c  Tom Goetz           2011-05-16  1312  {
b2abe506 arch/x86/xen/enlighten.c  Tom Goetz           2011-05-16  1313  	if (pm_power_off)
b2abe506 arch/x86/xen/enlighten.c  Tom Goetz           2011-05-16  1314  		pm_power_off();
b2abe506 arch/x86/xen/enlighten.c  Tom Goetz           2011-05-16  1315  	xen_reboot(SHUTDOWN_poweroff);
b2abe506 arch/x86/xen/enlighten.c  Tom Goetz           2011-05-16  1316  }
b2abe506 arch/x86/xen/enlighten.c  Tom Goetz           2011-05-16  1317  
fefa629a arch/i386/xen/enlighten.c Jeremy Fitzhardinge 2007-07-17  1318  static void xen_crash_shutdown(struct pt_regs *regs)
fefa629a arch/i386/xen/enlighten.c Jeremy Fitzhardinge 2007-07-17  1319  {
fefa629a arch/i386/xen/enlighten.c Jeremy Fitzhardinge 2007-07-17  1320  	xen_reboot(SHUTDOWN_crash);
fefa629a arch/i386/xen/enlighten.c Jeremy Fitzhardinge 2007-07-17  1321  }
fefa629a arch/i386/xen/enlighten.c Jeremy Fitzhardinge 2007-07-17  1322  
f09f6d19 arch/x86/xen/enlighten.c  Donald Dutile       2010-07-15  1323  static int
f09f6d19 arch/x86/xen/enlighten.c  Donald Dutile       2010-07-15  1324  xen_panic_event(struct notifier_block *this, unsigned long event, void *ptr)
f09f6d19 arch/x86/xen/enlighten.c  Donald Dutile       2010-07-15  1325  {
0050d1a1 arch/x86/xen/enlighten.c  Petr Tesarik        2016-07-14 @1326  	if (!kexec_crash_loaded())
086748e5 arch/x86/xen/enlighten.c  Ian Campbell        2010-08-03  1327  		xen_reboot(SHUTDOWN_crash);
f09f6d19 arch/x86/xen/enlighten.c  Donald Dutile       2010-07-15  1328  	return NOTIFY_DONE;
f09f6d19 arch/x86/xen/enlighten.c  Donald Dutile       2010-07-15  1329  }

:::::: The code at line 1326 was first introduced by commit
:::::: 0050d1a1b2e62db2d6fbe1176ab96a648cd0a47a kexec: allow kdump with crash_kexec_post_notifiers

:::::: TO: Petr Tesarik <ptesarik@xxxxxxxx>
:::::: CC: Johannes Weiner <hannes@xxxxxxxxxxx>

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

Attachment: .config.gz
Description: Binary data


[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]