[PATCH] x86_64 RESTORE_CONTEXT missing '\n'

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: <linux-kernel@...>
Cc: <ak@...>, <trini@...>, <sshtylyov@...>
Date: Wednesday, March 7, 2007 - 4:45 pm

The RESTORE_CONTEXT macro is missing the '\n' at the end. It was removed in the
previous patch that touched system.h. It causes compile failure if any
inline asm is added after the macro. Discovered this when playing with
kgdb.

Signed-off-by: Dave Jiang <djiang@mvista.com>

---

 include/asm-x86_64/system.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

---

diff --git a/include/asm-x86_64/system.h b/include/asm-x86_64/system.h
index bd376bc..cbb8579 100644
--- a/include/asm-x86_64/system.h
+++ b/include/asm-x86_64/system.h
@@ -15,7 +15,7 @@
 
 /* frame pointer must be last for get_wchan */
 #define SAVE_CONTEXT    "pushf ; pushq %%rbp ; movq %%rsi,%%rbp\n\t"
-#define RESTORE_CONTEXT "movq %%rbp,%%rsi ; popq %%rbp ; popf\t"
+#define RESTORE_CONTEXT "movq %%rbp,%%rsi ; popq %%rbp ; popf\n\t"
 
 #define __EXTRA_CLOBBER  \
 	,"rcx","rbx","rdx","r8","r9","r10","r11","r12","r13","r14","r15"
-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH] x86_64 RESTORE_CONTEXT missing '\n', Dave Jiang, (Wed Mar 7, 4:45 pm)
Re: [PATCH] x86_64 RESTORE_CONTEXT missing '\n', Andi Kleen, (Thu Mar 8, 1:14 pm)
Re: [PATCH] x86_64 RESTORE_CONTEXT missing '\n', Dave Jiang, (Thu Mar 8, 1:44 pm)
Re: [PATCH] x86_64 RESTORE_CONTEXT missing '\n', Andi Kleen, (Thu Mar 8, 2:37 pm)
Re: [PATCH] x86_64 RESTORE_CONTEXT missing '\n', Tom Rini, (Thu Mar 8, 2:49 pm)
Re: [PATCH] x86_64 RESTORE_CONTEXT missing '\n', Andi Kleen, (Thu Mar 8, 6:36 pm)