Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

x86, asmlinkage: Make dump_stack visible

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>

authored by

Andi Kleen and committed by
H. Peter Anvin
b6c035d0 4a335c06

+3 -3
+1 -1
include/linux/printk.h
··· 200 200 } 201 201 #endif 202 202 203 - extern void dump_stack(void) __cold; 203 + extern asmlinkage void dump_stack(void) __cold; 204 204 205 205 #ifndef pr_fmt 206 206 #define pr_fmt(fmt) fmt
+2 -2
lib/dump_stack.c
··· 23 23 #ifdef CONFIG_SMP 24 24 static atomic_t dump_lock = ATOMIC_INIT(-1); 25 25 26 - void dump_stack(void) 26 + asmlinkage void dump_stack(void) 27 27 { 28 28 int was_locked; 29 29 int old; ··· 55 55 preempt_enable(); 56 56 } 57 57 #else 58 - void dump_stack(void) 58 + asmlinkage void dump_stack(void) 59 59 { 60 60 __dump_stack(); 61 61 }