Skip to content

Commit cb38002

Browse files
sergey-senozhatskypmladek
authored andcommitted
unicore32: 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, fixed complication warning] Signed-off-by: Petr Mladek <[email protected]>
1 parent 9e6a42f commit cb38002

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

arch/unicore32/kernel/process.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
2323
#include <linux/delay.h>
2424
#include <linux/reboot.h>
2525
#include <linux/interrupt.h>
26-
#include <linux/kallsyms.h>
2726
#include <linux/init.h>
2827
#include <linux/cpu.h>
2928
#include <linux/elfcore.h>
@@ -139,8 +138,8 @@ void __show_regs(struct pt_regs *regs)
139138
char buf[64];
140139

141140
show_regs_print_info(KERN_DEFAULT);
142-
print_symbol("PC is at %s\n", instruction_pointer(regs));
143-
print_symbol("LR is at %s\n", regs->UCreg_lr);
141+
printk("PC is at %pS\n", (void *)instruction_pointer(regs));
142+
printk("LR is at %pS\n", (void *)regs->UCreg_lr);
144143
printk(KERN_DEFAULT "pc : [<%08lx>] lr : [<%08lx>] psr: %08lx\n"
145144
"sp : %08lx ip : %08lx fp : %08lx\n",
146145
regs->UCreg_pc, regs->UCreg_lr, regs->UCreg_asr,

0 commit comments

Comments
 (0)