Skip to content

Commit 67580c9

Browse files
sergey-senozhatskypmladek
authored andcommitted
mn10300: do not use print_symbol()
print_symbol() is a very old API that has been obsoleted by %pS format specifier in a normal printk() call. Replace print_symbol() with a direct printk("%pS") call. Link: http://lkml.kernel.org/r/[email protected] To: Andrew Morton <[email protected]> To: Russell King <[email protected]> To: Catalin Marinas <[email protected]> To: Mark Salter <[email protected]> To: Tony Luck <[email protected]> To: David Howells <[email protected]> To: Yoshinori Sato <[email protected]> To: Guan Xuetao <[email protected]> To: Borislav Petkov <[email protected]> To: Greg Kroah-Hartman <[email protected]> To: Thomas Gleixner <[email protected]> To: Peter Zijlstra <[email protected]> To: Vineet Gupta <[email protected]> To: Fengguang Wu <[email protected]> Cc: Steven Rostedt <[email protected]> Cc: Petr Mladek <[email protected]> Cc: LKML <[email protected]> Cc: [email protected] Cc: [email protected] Cc: [email protected] Cc: [email protected] Cc: [email protected] Cc: [email protected] Cc: [email protected] Cc: [email protected] Signed-off-by: Sergey Senozhatsky <[email protected]> [[email protected]: updated commit message] Signed-off-by: Petr Mladek <[email protected]>
1 parent 253c962 commit 67580c9

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

arch/mn10300/kernel/traps.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@
2222
#include <linux/delay.h>
2323
#include <linux/spinlock.h>
2424
#include <linux/interrupt.h>
25-
#include <linux/kallsyms.h>
2625
#include <linux/pci.h>
2726
#include <linux/kdebug.h>
2827
#include <linux/bug.h>
@@ -262,8 +261,7 @@ void show_trace(unsigned long *sp)
262261
raslot = ULONG_MAX;
263262
else
264263
printk(" ?");
265-
print_symbol(" %s", addr);
266-
printk("\n");
264+
printk(" %pS\n", (void *)addr);
267265
}
268266
}
269267

0 commit comments

Comments
 (0)