提交 b6c035d0 编写于 作者: A Andi Kleen 提交者: H. Peter Anvin

x86, asmlinkage: Make dump_stack visible

dump_stack is used from assembler code, so make it visible.
Signed-off-by: NAndi Kleen <ak@linux.intel.com>
Link: http://lkml.kernel.org/r/1375740170-7446-15-git-send-email-andi@firstfloor.orgSigned-off-by: NH. Peter Anvin <hpa@linux.intel.com>
上级 4a335c06
...@@ -200,7 +200,7 @@ static inline void show_regs_print_info(const char *log_lvl) ...@@ -200,7 +200,7 @@ static inline void show_regs_print_info(const char *log_lvl)
} }
#endif #endif
extern void dump_stack(void) __cold; extern asmlinkage void dump_stack(void) __cold;
#ifndef pr_fmt #ifndef pr_fmt
#define pr_fmt(fmt) fmt #define pr_fmt(fmt) fmt
......
...@@ -23,7 +23,7 @@ static void __dump_stack(void) ...@@ -23,7 +23,7 @@ static void __dump_stack(void)
#ifdef CONFIG_SMP #ifdef CONFIG_SMP
static atomic_t dump_lock = ATOMIC_INIT(-1); static atomic_t dump_lock = ATOMIC_INIT(-1);
void dump_stack(void) asmlinkage void dump_stack(void)
{ {
int was_locked; int was_locked;
int old; int old;
...@@ -55,7 +55,7 @@ void dump_stack(void) ...@@ -55,7 +55,7 @@ void dump_stack(void)
preempt_enable(); preempt_enable();
} }
#else #else
void dump_stack(void) asmlinkage void dump_stack(void)
{ {
__dump_stack(); __dump_stack();
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册