x86, asmlinkage: Make dump_stack visible
authorAndi Kleen <ak@linux.intel.com>
Mon, 5 Aug 2013 22:02:48 +0000 (15:02 -0700)
committerH. Peter Anvin <hpa@linux.intel.com>
Tue, 6 Aug 2013 21:21:01 +0000 (14:21 -0700)
dump_stack is used from assembler code, so make it visible.

Signed-off-by: Andi Kleen <ak@linux.intel.com>
Link: http://lkml.kernel.org/r/1375740170-7446-15-git-send-email-andi@firstfloor.org
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
include/linux/printk.h
lib/dump_stack.c

index 22c7052e937248e4c3337778d8608b3508a24ce5..e6131a782481186cb25ac1bb50f91bddc581e17d 100644 (file)
@@ -200,7 +200,7 @@ static inline void show_regs_print_info(const char *log_lvl)
 }
 #endif
 
-extern void dump_stack(void) __cold;
+extern asmlinkage void dump_stack(void) __cold;
 
 #ifndef pr_fmt
 #define pr_fmt(fmt) fmt
index c03154173cc70cd2a240c137e55bb17f7d612434..f23b63f0a1c391303e6a13e7fb6495a6354aa9c0 100644 (file)
@@ -23,7 +23,7 @@ static void __dump_stack(void)
 #ifdef CONFIG_SMP
 static atomic_t dump_lock = ATOMIC_INIT(-1);
 
-void dump_stack(void)
+asmlinkage void dump_stack(void)
 {
        int was_locked;
        int old;
@@ -55,7 +55,7 @@ retry:
        preempt_enable();
 }
 #else
-void dump_stack(void)
+asmlinkage void dump_stack(void)
 {
        __dump_stack();
 }