Skip to contentSkip to conversation

gcc4 fix for xen/include/asm-x86/processor.h

PATCH New Tim Moreton 1 participant 1 message Jul 14, 2005

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 gcc4 fix for xen/include/asm-x86/processor.h

Hi,

I haven't kept up to date with whether patches for gcc4 compliance are applied to 2.0-testing, but when I was trying to compile it on FC4, one that seems to have slipped the net was given by Rik van Riel back in March:

http://lists.xensource.com/archives/html/xen-devel/2005-03/msg00180.html

The patch no longer applies cleanly, but the one below does, if it helps.

Tim

xen/include/asm-x86/processor.h Wed Jul 13 19:30:01 2005 renamed from xen/include/asm-x86/processor.h Fri Jul 8 16:36:26 2005 +2 -1
@@ -172,7 +172,6 @@
  */
 
 extern struct cpuinfo_x86 boot_cpu_data;
-extern struct tss_struct init_tss[NR_CPUS];
 
 #ifdef CONFIG_SMP
 extern struct cpuinfo_x86 cpu_data[];
@@ -435,6 +434,8 @@
 extern struct desc_struct idt_table[];
 extern struct desc_struct *idt_tables[];
 
+extern struct tss_struct init_tss[NR_CPUS];
+
 #if defined(__i386__)
 
 #define SET_DEFAULT_FAST_TRAP(_p) \