Skip to content

Commit 4674f04

Browse files
committed
lkl: hide dump_stack() if CONFIG_PRINTK is not set
include/linux/printk.h defines stub dump_stack() if CONFIG_PRINTK is not set. This function conflicts with dump_stack() in arch/lkl/kernel/misc.c. This commit resolves the issue by hiding lkl specific dump_stack() if CONFIG_PRINTK is not set. Signed-off-by: Akira Moroo <retrage01@gmail.com>
1 parent d964547 commit 4674f04

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

arch/lkl/kernel/misc.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
#include <asm/ptrace.h>
66
#include <asm/host_ops.h>
77

8+
#ifdef CONFIG_PRINTK
89
void dump_stack(void)
910
{
1011
unsigned long dummy;
@@ -23,6 +24,7 @@ void dump_stack(void)
2324
}
2425
pr_info("\n");
2526
}
27+
#endif
2628

2729
void show_regs(struct pt_regs *regs)
2830
{

0 commit comments

Comments
 (0)