SELinux: inline selinux_is_enabled in !CONFIG_SECURITY_SELINUX
commit8a478905adbb2e09a59644e76f7fe7e0ab644204
authorEric Paris <eparis@redhat.com>
Tue, 15 Sep 2009 00:59:48 +0000 (14 20:59 -0400)
committerJames Morris <jmorris@namei.org>
Tue, 15 Sep 2009 01:37:33 +0000 (15 11:37 +1000)
tree876eef3ca926a6b7d56d7fd2065039cc45a796bc
parentc08ef808ef24df32e25fbd949fe5310172f3c408
SELinux: inline selinux_is_enabled in !CONFIG_SECURITY_SELINUX

Without this patch building a kernel emits millions of warning like:

include/linux/selinux.h:92: warning: ?selinux_is_enabled? defined but not used

When it is build without CONFIG_SECURITY_SELINUX.  This is harmless, but
the function should be inlined, so it gets compiled out.

Reported-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Eric Paris <eparis@redhat.com>
Signed-off-by: James Morris <jmorris@namei.org>
include/linux/selinux.h