diff options
Diffstat (limited to 'arch/microblaze/kernel/traps.c')
| -rw-r--r-- | arch/microblaze/kernel/traps.c | 14 | 
1 files changed, 3 insertions, 11 deletions
diff --git a/arch/microblaze/kernel/traps.c b/arch/microblaze/kernel/traps.c index 5541ac55959..cb619533a19 100644 --- a/arch/microblaze/kernel/traps.c +++ b/arch/microblaze/kernel/traps.c @@ -8,9 +8,9 @@   * for more details.   */ +#include <linux/export.h>  #include <linux/kernel.h>  #include <linux/kallsyms.h> -#include <linux/module.h>  #include <linux/sched.h>  #include <linux/debug_locks.h> @@ -26,7 +26,7 @@ static unsigned long kstack_depth_to_print;	/* 0 == entire stack */  static int __init kstack_setup(char *s)  { -	return !strict_strtoul(s, 0, &kstack_depth_to_print); +	return !kstrtoul(s, 0, &kstack_depth_to_print);  }  __setup("kstack=", kstack_setup); @@ -66,9 +66,7 @@ void show_stack(struct task_struct *task, unsigned long *sp)  	}  	print_hex_dump(KERN_INFO, "", DUMP_PREFIX_ADDRESS, 32, 4, (void *)fp,  		       words_to_show << 2, 0); -	printk(KERN_INFO "\n\n"); - -	pr_info("Call Trace:\n"); +	pr_info("\n\nCall Trace:\n");  	microblaze_unwind(task, NULL);  	pr_info("\n"); @@ -77,9 +75,3 @@ void show_stack(struct task_struct *task, unsigned long *sp)  	debug_show_held_locks(task);  } - -void dump_stack(void) -{ -	show_stack(NULL, NULL); -} -EXPORT_SYMBOL(dump_stack);  |