]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
powerpc: Remove second definition of STACK_FRAME_OVERHEAD
authorStephen Rothwell <sfr@canb.auug.org.au>
Thu, 18 Nov 2010 15:06:17 +0000 (15:06 +0000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Mon, 29 Nov 2010 04:48:23 +0000 (15:48 +1100)
Since STACK_FRAME_OVERHEAD is defined in asm/ptrace.h and that
is ASSEMBER safe, we can just include that instead of going via
asm-offsets.h.

Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
14 files changed:
arch/powerpc/kernel/asm-offsets.c
arch/powerpc/kernel/entry_32.S
arch/powerpc/kernel/exceptions-64s.S
arch/powerpc/kernel/fpu.S
arch/powerpc/kernel/head_40x.S
arch/powerpc/kernel/head_44x.S
arch/powerpc/kernel/head_64.S
arch/powerpc/kernel/head_8xx.S
arch/powerpc/kernel/head_fsl_booke.S
arch/powerpc/kernel/misc_32.S
arch/powerpc/kernel/misc_64.S
arch/powerpc/kernel/ppc_save_regs.S
arch/powerpc/kernel/vector.S
arch/powerpc/platforms/pseries/hvCall.S

index bd0df2e6aa8f7370376abda55d34f6670179022e..23e6a93145ab3d95e136fe211004c2234e7dba44 100644 (file)
@@ -209,7 +209,6 @@ int main(void)
        DEFINE(RTASENTRY, offsetof(struct rtas_t, entry));
 
        /* Interrupt register frame */
-       DEFINE(STACK_FRAME_OVERHEAD, STACK_FRAME_OVERHEAD);
        DEFINE(INT_FRAME_SIZE, STACK_INT_FRAME_SIZE);
        DEFINE(SWITCH_FRAME_SIZE, STACK_FRAME_OVERHEAD + sizeof(struct pt_regs));
 #ifdef CONFIG_PPC64
index ed4aeb96398b1aebc78456c5a9715cbd7d251e53..c22dc1ec1c944037d3ca347785a5be3899b978c0 100644 (file)
@@ -31,6 +31,7 @@
 #include <asm/asm-offsets.h>
 #include <asm/unistd.h>
 #include <asm/ftrace.h>
+#include <asm/ptrace.h>
 
 #undef SHOW_SYSCALLS
 #undef SHOW_SYSCALLS_TASK
index 9f8b01d6466f90e61a9841daedc1e431e862eabf..8a817995b4cda9614b9d1da47efbae5e6dcb72f2 100644 (file)
@@ -13,6 +13,7 @@
  */
 
 #include <asm/exception-64s.h>
+#include <asm/ptrace.h>
 
 /*
  * We layout physical memory as follows:
index e86c040ae5857056a2538fe535864e96d2ce3579..de369558bf0a183c58e94f5f9871fc497f06b971 100644 (file)
@@ -23,6 +23,7 @@
 #include <asm/thread_info.h>
 #include <asm/ppc_asm.h>
 #include <asm/asm-offsets.h>
+#include <asm/ptrace.h>
 
 #ifdef CONFIG_VSX
 #define REST_32FPVSRS(n,c,base)                                                \
index 8278e8bad5a01ebad1de83e5623047cd3899364e..9dd21a8c4d52ac3cef52923ea561c21347cf24b0 100644 (file)
@@ -40,6 +40,7 @@
 #include <asm/thread_info.h>
 #include <asm/ppc_asm.h>
 #include <asm/asm-offsets.h>
+#include <asm/ptrace.h>
 
 /* As with the other PowerPC ports, it is expected that when code
  * execution begins here, the following registers contain valid, yet
index 562305b40a8e7c669adc95cc3cfc5edaca87e5e5..cbb3436b592d066f5bda450cfd96e82e51dfff95 100644 (file)
@@ -37,6 +37,7 @@
 #include <asm/thread_info.h>
 #include <asm/ppc_asm.h>
 #include <asm/asm-offsets.h>
+#include <asm/ptrace.h>
 #include <asm/synch.h>
 #include "head_booke.h"
 
index f0dd577e4a5b8b7f909a30069a7d57be9ba72d6e..ce41b97eb512b70957211468b6937a655a9601fb 100644 (file)
@@ -38,6 +38,7 @@
 #include <asm/page_64.h>
 #include <asm/irqflags.h>
 #include <asm/kvm_book3s_asm.h>
+#include <asm/ptrace.h>
 
 /* The physical memory is layed out such that the secondary processor
  * spin code sits at 0x0000...0x00ff. On server, the vectors follow
index 1f1a04b5c2a40eb97615a87846cf7298006dfbf5..1cbf64e6b416c1139b1f57582597477aef4cd61d 100644 (file)
@@ -29,6 +29,7 @@
 #include <asm/thread_info.h>
 #include <asm/ppc_asm.h>
 #include <asm/asm-offsets.h>
+#include <asm/ptrace.h>
 
 /* Macro to make the code more readable. */
 #ifdef CONFIG_8xx_CPU6
index 529b817f473b13de52bea2ac0ae33e859e9e27c4..3e02710d95629627bf087a5b67f36547dcdd6eb9 100644 (file)
@@ -41,6 +41,7 @@
 #include <asm/ppc_asm.h>
 #include <asm/asm-offsets.h>
 #include <asm/cache.h>
+#include <asm/ptrace.h>
 #include "head_booke.h"
 
 /* As with the other PowerPC ports, it is expected that when code
index a7a570dcdd571c8fb861562e549dbf094147fb32..094bd9821ad45b978510d9627ec5c1b2a7b3e5e7 100644 (file)
@@ -30,6 +30,7 @@
 #include <asm/processor.h>
 #include <asm/kexec.h>
 #include <asm/bug.h>
+#include <asm/ptrace.h>
 
        .text
 
index e5144906a56da692d1151db9e55db00ebdc73b2a..206a321a71d35db57caa199a7bd1f6a9b098f153 100644 (file)
@@ -25,6 +25,7 @@
 #include <asm/cputable.h>
 #include <asm/thread_info.h>
 #include <asm/kexec.h>
+#include <asm/ptrace.h>
 
        .text
 
index 5113bd2285e14d546b0e1d16779f5c24d9287bfe..e83ba3f078e4057789eece119d0eb15fc9656bbc 100644 (file)
@@ -11,6 +11,7 @@
 #include <asm/processor.h>
 #include <asm/ppc_asm.h>
 #include <asm/asm-offsets.h>
+#include <asm/ptrace.h>
 
 /*
  * Grab the register values as they are now.
index fe460482fa68dff8d35d36e94eec996b2644e679..9de6f396cf85d69aa9f4afd17dea1c188fd13c88 100644 (file)
@@ -5,6 +5,7 @@
 #include <asm/cputable.h>
 #include <asm/thread_info.h>
 #include <asm/page.h>
+#include <asm/ptrace.h>
 
 /*
  * load_up_altivec(unused, unused, tsk)
index 48d20573e4de763db61006b57c0a4b10e565e8bb..fd05fdee576a8d13af9c1ce748754747478d56ec 100644 (file)
@@ -11,6 +11,7 @@
 #include <asm/processor.h>
 #include <asm/ppc_asm.h>
 #include <asm/asm-offsets.h>
+#include <asm/ptrace.h>
        
 #define STK_PARM(i)     (48 + ((i)-3)*8)