diff options
author | Eric Paris <eparis@redhat.com> | 2009-09-14 20:59:48 -0400 |
---|---|---|
committer | James Morris <jmorris@namei.org> | 2009-09-14 21:37:33 -0400 |
commit | 8a478905adbb2e09a59644e76f7fe7e0ab644204 (patch) | |
tree | 876eef3ca926a6b7d56d7fd2065039cc45a796bc /include/linux/selinux.h | |
parent | c08ef808ef24df32e25fbd949fe5310172f3c408 (diff) |
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>
Diffstat (limited to 'include/linux/selinux.h')
-rw-r--r-- | include/linux/selinux.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/selinux.h b/include/linux/selinux.h index 223d06a6feb1..82e0f26a1299 100644 --- a/include/linux/selinux.h +++ b/include/linux/selinux.h | |||
@@ -89,7 +89,7 @@ static inline void selinux_secmark_refcount_dec(void) | |||
89 | return; | 89 | return; |
90 | } | 90 | } |
91 | 91 | ||
92 | static bool selinux_is_enabled(void) | 92 | static inline bool selinux_is_enabled(void) |
93 | { | 93 | { |
94 | return false; | 94 | return false; |
95 | } | 95 | } |