[PATCH v3 1/3] powerpc/rtas: Export rtas_error_rc
Michael Ellerman
mpe at ellerman.id.au
Tue Apr 28 13:31:19 AEST 2020
Sam Bobroff <sbobroff at linux.ibm.com> writes:
> Export rtas_error_rc() so that it can be used by other users of
> rtas_call() (which is already exported).
>
> Signed-off-by: Sam Bobroff <sbobroff at linux.ibm.com>
> ---
> v3 * New in this version.
>
> arch/powerpc/include/asm/rtas.h | 1 +
> arch/powerpc/kernel/rtas.c | 3 ++-
> 2 files changed, 3 insertions(+), 1 deletion(-)
>
> diff --git a/arch/powerpc/include/asm/rtas.h b/arch/powerpc/include/asm/rtas.h
> index 3c1887351c71..7c9e4d3635cf 100644
> --- a/arch/powerpc/include/asm/rtas.h
> +++ b/arch/powerpc/include/asm/rtas.h
> @@ -379,6 +379,7 @@ extern int rtas_set_rtc_time(struct rtc_time *rtc_time);
>
> extern unsigned int rtas_busy_delay_time(int status);
> extern unsigned int rtas_busy_delay(int status);
> +extern int rtas_error_rc(int rtas_rc);
>
> extern int early_init_dt_scan_rtas(unsigned long node,
> const char *uname, int depth, void *data);
> diff --git a/arch/powerpc/kernel/rtas.c b/arch/powerpc/kernel/rtas.c
> index c5fa251b8950..238bf112d29a 100644
> --- a/arch/powerpc/kernel/rtas.c
> +++ b/arch/powerpc/kernel/rtas.c
> @@ -518,7 +518,7 @@ unsigned int rtas_busy_delay(int status)
> }
> EXPORT_SYMBOL(rtas_busy_delay);
>
> -static int rtas_error_rc(int rtas_rc)
> +int rtas_error_rc(int rtas_rc)
> {
> int rc;
>
> @@ -546,6 +546,7 @@ static int rtas_error_rc(int rtas_rc)
> }
> return rc;
> }
> +EXPORT_SYMBOL(rtas_error_rc);
Will it be used in a module somewhere?
AFAICS the only caller you add is built-in.
cheers
More information about the Linuxppc-dev
mailing list