Re: [PATCH] SELinux: inline selinux_is_enabled in!CONFIG_SECURITY_SELINUX

From: James Morris
Date: Mon Sep 14 2009 - 21:38:50 EST


On Mon, 14 Sep 2009, Eric Paris wrote:

> 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@xxxxxxxxxxxxxxxxxxxx>
> Signed-off-by: Eric Paris <eparis@xxxxxxxxxx>

Acked-by: James Morris <jmorris@xxxxxxxxx>

Linus, I'll assume you'll want to apply this directly.


--
James Morris
<jmorris@xxxxxxxxx>
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/