summaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorRolf Eike Beer <eike-kernel@sf-tec.de>2020-06-22 20:47:50 +0200
committerHelge Deller <deller@gmx.de>2020-08-04 16:22:53 +0200
commite2693ec1e0a12a6dc601e4dfe9b6f714b92f6954 (patch)
tree203fc22b9007c151180d35d96f157050e154167d /arch
parente72b23dec1da5e62a0090c5da1d926778284e230 (diff)
downloadlinux-stable-e2693ec1e0a12a6dc601e4dfe9b6f714b92f6954.tar.gz
linux-stable-e2693ec1e0a12a6dc601e4dfe9b6f714b92f6954.tar.bz2
linux-stable-e2693ec1e0a12a6dc601e4dfe9b6f714b92f6954.zip
parisc: make the log level string for register dumps const
Signed-off-by: Rolf Eike Beer <eike-kernel@sf-tec.de> Signed-off-by: Helge Deller <deller@gmx.de>
Diffstat (limited to 'arch')
-rw-r--r--arch/parisc/kernel/traps.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/parisc/kernel/traps.c b/arch/parisc/kernel/traps.c
index 5400e23a77a1..43875c289723 100644
--- a/arch/parisc/kernel/traps.c
+++ b/arch/parisc/kernel/traps.c
@@ -75,7 +75,7 @@ static int printbinary(char *buf, unsigned long x, int nbits)
lvl, f, (x), (x+3), (r)[(x)+0], (r)[(x)+1], \
(r)[(x)+2], (r)[(x)+3])
-static void print_gr(char *level, struct pt_regs *regs)
+static void print_gr(const char *level, struct pt_regs *regs)
{
int i;
char buf[64];
@@ -89,7 +89,7 @@ static void print_gr(char *level, struct pt_regs *regs)
PRINTREGS(level, regs->gr, "r", RFMT, i);
}
-static void print_fr(char *level, struct pt_regs *regs)
+static void print_fr(const char *level, struct pt_regs *regs)
{
int i;
char buf[64];
@@ -119,7 +119,7 @@ static void print_fr(char *level, struct pt_regs *regs)
void show_regs(struct pt_regs *regs)
{
int i, user;
- char *level;
+ const char *level;
unsigned long cr30, cr31;
user = user_mode(regs);