Skip to content

Commit e2693ec

Browse files
DerDakonhdeller
authored andcommitted
parisc: make the log level string for register dumps const
Signed-off-by: Rolf Eike Beer <[email protected]> Signed-off-by: Helge Deller <[email protected]>
1 parent e72b23d commit e2693ec

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

arch/parisc/kernel/traps.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ static int printbinary(char *buf, unsigned long x, int nbits)
7575
lvl, f, (x), (x+3), (r)[(x)+0], (r)[(x)+1], \
7676
(r)[(x)+2], (r)[(x)+3])
7777

78-
static void print_gr(char *level, struct pt_regs *regs)
78+
static void print_gr(const char *level, struct pt_regs *regs)
7979
{
8080
int i;
8181
char buf[64];
@@ -89,7 +89,7 @@ static void print_gr(char *level, struct pt_regs *regs)
8989
PRINTREGS(level, regs->gr, "r", RFMT, i);
9090
}
9191

92-
static void print_fr(char *level, struct pt_regs *regs)
92+
static void print_fr(const char *level, struct pt_regs *regs)
9393
{
9494
int i;
9595
char buf[64];
@@ -119,7 +119,7 @@ static void print_fr(char *level, struct pt_regs *regs)
119119
void show_regs(struct pt_regs *regs)
120120
{
121121
int i, user;
122-
char *level;
122+
const char *level;
123123
unsigned long cr30, cr31;
124124

125125
user = user_mode(regs);

0 commit comments

Comments
 (0)