patches/linux/2.6.11.3/linux-2.6.11-allow-gcc-4.0-asm-x86_64.patch
changeset 1 eeea35fbf182
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/patches/linux/2.6.11.3/linux-2.6.11-allow-gcc-4.0-asm-x86_64.patch	Sat Feb 24 11:00:05 2007 +0000
     1.3 @@ -0,0 +1,28 @@
     1.4 +Fixes:
     1.5 +
     1.6 +In file included from include/linux/spinlock.h:16,
     1.7 +                 from include/linux/capability.h:45,
     1.8 +                 from include/linux/sched.h:7,
     1.9 +                 from arch/x86_64/kernel/asm-offsets.c:7:
    1.10 +include/asm/processor.h:79: error: array type has incomplete element type
    1.11 +make[1]: *** [arch/x86_64/kernel/asm-offsets.asm] Error 1
    1.12 +
    1.13 +--- linux-2.6.11.3/include/asm-x86_64/processor.h.old	Tue Mar 15 07:05:07 2005
    1.14 ++++ linux-2.6.11.3/include/asm-x86_64/processor.h	Tue Mar 15 07:09:53 2005
    1.15 +@@ -179,7 +179,6 @@
    1.16 + #define IO_BITMAP_BITS  65536
    1.17 + #define IO_BITMAP_BYTES (IO_BITMAP_BITS/8)
    1.18 + #define IO_BITMAP_LONGS (IO_BITMAP_BYTES/sizeof(long))
    1.19 +-#define IO_BITMAP_OFFSET offsetof(struct tss_struct,io_bitmap)
    1.20 + #define INVALID_IO_BITMAP_OFFSET 0x8000
    1.21 + 
    1.22 + struct i387_fxsave_struct {
    1.23 +@@ -222,6 +221,8 @@
    1.24 + 	 */
    1.25 + 	unsigned long io_bitmap[IO_BITMAP_LONGS + 1];
    1.26 + } __attribute__((packed)) ____cacheline_aligned;
    1.27 ++
    1.28 ++#define IO_BITMAP_OFFSET offsetof(struct tss_struct,io_bitmap)
    1.29 + 
    1.30 + extern struct cpuinfo_x86 boot_cpu_data;
    1.31 + DECLARE_PER_CPU(struct tss_struct,init_tss);