Skip to content

Commit

Permalink
x86, asmlinkage: Make dump_stack visible
Browse files Browse the repository at this point in the history
dump_stack is used from assembler code, so make it visible.

Signed-off-by: Andi Kleen <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: H. Peter Anvin <[email protected]>
  • Loading branch information
Andi Kleen authored and H. Peter Anvin committed Aug 6, 2013
1 parent 4a335c0 commit b6c035d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion include/linux/printk.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions lib/dump_stack.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -55,7 +55,7 @@ void dump_stack(void)
preempt_enable();
}
#else
void dump_stack(void)
asmlinkage void dump_stack(void)
{
__dump_stack();
}
Expand Down

0 comments on commit b6c035d

Please sign in to comment.