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-ppc64.patch Sat May 19 13:10:11 2007 +0000
1.3 @@ -0,0 +1,30 @@
1.4 +Fixes
1.5 +
1.6 +In file included from include/asm/current.h:4,
1.7 + from include/linux/wait.h:27,
1.8 + from include/asm/semaphore.h:15,
1.9 + from include/linux/sched.h:19,
1.10 + from arch/ppc64/kernel/asm-offsets.c:18:
1.11 +include/asm/paca.h:25: error: array type has incomplete element type
1.12 +make[1]: *** [arch/ppc64/kernel/asm-offsets.s] Error 1
1.13 +
1.14 +when building with gcc-4.0
1.15 +
1.16 +--- linux-2.6.11.3/include/asm-ppc64/paca.h.old Fri Mar 18 13:23:40 2005
1.17 ++++ linux-2.6.11.3/include/asm-ppc64/paca.h Fri Mar 18 13:24:04 2005
1.18 +@@ -22,7 +22,6 @@
1.19 + #include <asm/iSeries/ItLpRegSave.h>
1.20 + #include <asm/mmu.h>
1.21 +
1.22 +-extern struct paca_struct paca[];
1.23 + register struct paca_struct *local_paca asm("r13");
1.24 + #define get_paca() local_paca
1.25 +
1.26 +@@ -114,5 +113,7 @@
1.27 + struct ItLpRegSave reg_save;
1.28 + #endif
1.29 + };
1.30 ++
1.31 ++extern struct paca_struct paca[];
1.32 +
1.33 + #endif /* _PPC64_PACA_H */