diff mbox series

mpc8xx: Expose show_regs()

Message ID 20200129160719.25470-1-trini@konsulko.com
State Accepted
Commit 3f3c153e330d2928cf49c85e94380010607e0a50
Headers show
Series mpc8xx: Expose show_regs() | expand

Commit Message

Tom Rini Jan. 29, 2020, 4:07 p.m. UTC
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 <christophe.leroy at c-s.fr>
Cc: Wolfgang Denk <wd at denx.de>
Signed-off-by: Tom Rini <trini at konsulko.com>
---
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(-)

Comments

Christophe Leroy Jan. 29, 2020, 4:22 p.m. UTC | #1
Le 29/01/2020 à 17:07, Tom Rini a écrit :
> 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 <christophe.leroy at c-s.fr>
> Cc: Wolfgang Denk <wd at denx.de>
> Signed-off-by: Tom Rini <trini at konsulko.com>

Acked-by: Christophe Leroy <christophe.leroy at c-s.fr>

> ---
> 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(-)
> 
> diff --git a/arch/powerpc/cpu/mpc8xx/traps.c b/arch/powerpc/cpu/mpc8xx/traps.c
> index d2bbf3e99686..899bcd86188a 100644
> --- a/arch/powerpc/cpu/mpc8xx/traps.c
> +++ b/arch/powerpc/cpu/mpc8xx/traps.c
> @@ -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;
>   
>
diff mbox series

Patch

diff --git a/arch/powerpc/cpu/mpc8xx/traps.c b/arch/powerpc/cpu/mpc8xx/traps.c
index d2bbf3e99686..899bcd86188a 100644
--- a/arch/powerpc/cpu/mpc8xx/traps.c
+++ b/arch/powerpc/cpu/mpc8xx/traps.c
@@ -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;