Skip to contentSkip to conversation

mpc8xx: Expose show_regs()

PATCH New Tom Rini 2 participants 3 messages Jan 29, 2020 – Feb 8, 2020 PowerPC

lore
Share & tools
lore

Tom Rini

author
#0 lore raw

PATCH 1/1 mpc8xx: Expose show_regs()

To match the other PowerPC platforms the function show_regs() must not be marked static but instead be an exposed global function.

Cc Christophe Leroy <[email protected]>
Cc Wolfgang Denk <[email protected]>

---
I stumbled on this to see if the BEDBUG code still compiles correctly. It does, so I'm submitting this patch to allow it to be in theory used on mpc8xx.

---
 arch/powerpc/cpu/mpc8xx/traps.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/powerpc/cpu/mpc8xx/traps.c +1 -1
index d2bbf3e99686..899bcd86188a 100644
@@ -51,7 +51,7 @@ static void print_backtrace(unsigned long *sp)
 	printf("\n");
 }
 
-static void show_regs(struct pt_regs *regs)
+void show_regs(struct pt_regs *regs)
 {
 	int i;
 
Signature · 1 line
2.17.1
#1 lore raw

PATCH 1/1 mpc8xx: Expose show_regs()

Le 29/01/2020 à 17:07, Tom Rini a écrit :

Quoted 6 lines

To match the other PowerPC platforms the function show_regs() must not be marked static but instead be an exposed global function.

Cc Christophe Leroy <[email protected]>
Cc Wolfgang Denk <[email protected]>
Quoted 22 lines

---
I stumbled on this to see if the BEDBUG code still compiles correctly. It does, so I'm submitting this patch to allow it to be in theory used on mpc8xx.

---
  arch/powerpc/cpu/mpc8xx/traps.c | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
arch/powerpc/cpu/mpc8xx/traps.c +1 -1
index d2bbf3e99686..899bcd86188a 100644
@@ -51,7 +51,7 @@ static void print_backtrace(unsigned long *sp)
  	printf("\n");
  }
 
-static void show_regs(struct pt_regs *regs)
+void show_regs(struct pt_regs *regs)
  {
  	int i;
 
author
#2 lore raw

PATCH 1/1 mpc8xx: Expose show_regs()

In reply to Tom Rini
Quoted 7 lines · Tom Rini

To match the other PowerPC platforms the function show_regs() must not be marked static but instead be an exposed global function.

Applied to u-boot/master, thanks!

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20200207/23ae55e4/attachment.sig>