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>
This commit is contained in:
Andi Kleen 2013-08-05 15:02:48 -07:00 committed by H. Peter Anvin
parent 4a335c0695
commit b6c035d04e
2 changed files with 3 additions and 3 deletions

View 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

View 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 @@ void dump_stack(void)
preempt_enable();
}
#else
void dump_stack(void)
asmlinkage void dump_stack(void)
{
__dump_stack();
}