Skip to contentSkip to conversation

x86_64: move init_tss declaration after tss_struct definition

PATCH New Matt Domsch 1 participant 1 message Mar 19, 2005

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 x86_64: move init_tss declaration after tss_struct definition

Compiling 2.4.30-pre3 for x86_64 with FC4-test1 gcc-4.0.0-0.32 fails because include/asm-x86_64/processor.h declares init_tss[NR_CPUS] as a sized array before struct tss_struct has been defined. Simple fix moves this declaration to after the definition of tss_struct.

Signature · 25 lines
Matt Domsch
Software Architect
Dell Linux Solutions linux.dell.com & www.dell.com/linux
Linux on Dell mailing lists @ http://lists.us.dell.com

===== include/asm-x86_64/processor.h 1.9 vs edited =====
--- 1.9/include/asm-x86_64/processor.h	2004-03-21 18:35:56 -06:00
+++ edited/include/asm-x86_64/processor.h	2005-03-18 14:56:30 -06:00
@@ -68,7 +68,6 @@
 #define X86_VENDOR_UNKNOWN 0xff
 
 extern struct cpuinfo_x86 boot_cpu_data;
-extern struct tss_struct init_tss[NR_CPUS];
 
 #ifdef CONFIG_SMP
 extern struct cpuinfo_x86 cpu_data[];
@@ -298,6 +297,8 @@
 	u16 io_map_base;
 	u32 io_bitmap[IO_BITMAP_SIZE];
 } __attribute__((packed)) ____cacheline_aligned;
+
+extern struct tss_struct init_tss[NR_CPUS];
 
 struct thread_struct {
 	unsigned long	rsp0;