Re: [PATCH] modules: mark __inittest/__exittest as __maybe_unused
From: Miroslav Benes
Date: Thu Feb 02 2017 - 14:45:18 EST
On Wed, 1 Feb 2017, Arnd Bergmann wrote:
> clang warns about unused inline functions by default:
>
> arch/arm/crypto/aes-cipher-glue.c:68:1: warning: unused function '__inittest' [-Wunused-function]
> arch/arm/crypto/aes-cipher-glue.c:69:1: warning: unused function '__exittest' [-Wunused-function]
>
> As these appear in every single module, let's just disable the warnings by marking the
> two functions as __maybe_unused.
>
> Signed-off-by: Arnd Bergmann <arnd@xxxxxxxx>
Makes sense.
Reviewed-by: Miroslav Benes <mbenes@xxxxxxx>
Regards,
Miroslav