Re: [PATCH] ARM: don't export unused return_address()

From: Masahiro Yamada
Date: Tue Sep 24 2019 - 01:15:51 EST


On Sat, Sep 7, 2019 at 12:47 AM Arnd Bergmann <arnd@xxxxxxxx> wrote:
>
> Without the frame pointer enabled, return_address() is an inline
> function and does not need to be exported, as shown by this warning:
>
> WARNING: "return_address" [vmlinux] is a static EXPORT_SYMBOL_GPL
>
> Move the EXPORT_SYMBOL_GPL() into the #ifdef as well.
>
> Signed-off-by: Arnd Bergmann <arnd@xxxxxxxx>


Reviewed-by: Masahiro Yamada <yamada.masahiro@xxxxxxxxxxxxx>



--
Best Regards
Masahiro Yamada