提交 8a478905 编写于 作者: E Eric Paris 提交者: James Morris

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: NLinus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: NEric Paris <eparis@redhat.com>
Signed-off-by: NJames Morris <jmorris@namei.org>
上级 c08ef808
...@@ -89,7 +89,7 @@ static inline void selinux_secmark_refcount_dec(void) ...@@ -89,7 +89,7 @@ static inline void selinux_secmark_refcount_dec(void)
return; return;
} }
static bool selinux_is_enabled(void) static inline bool selinux_is_enabled(void)
{ {
return false; return false;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册