]> git.baikalelectronics.ru Git - kernel.git/commit
modules: mark __inittest/__exittest as __maybe_unused
authorArnd Bergmann <arnd@arndb.de>
Wed, 1 Feb 2017 17:00:14 +0000 (18:00 +0100)
committerJessica Yu <jeyu@redhat.com>
Mon, 6 Feb 2017 23:26:15 +0000 (15:26 -0800)
commit4d89daa671323167eb6268568d6a4f0f11c20a57
tree5bda66889143dab5f6cbe26e97b6feb998e64ae0
parent0721cdc456ecae9c4521dc2c64afdd0dc752e76b
modules: mark __inittest/__exittest as __maybe_unused

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@arndb.de>
Reviewed-by: Miroslav Benes <mbenes@suse.cz>
Acked-by: Rusty Russell <rusty@rustcorp.com.au>
Signed-off-by: Jessica Yu <jeyu@redhat.com>
include/linux/module.h