pkeys: Remove easily triggered WARN
authorDave Jones <davej@codemonkey.org.uk>
Fri, 14 Oct 2016 18:26:24 +0000 (14:26 -0400)
committerThomas Gleixner <tglx@linutronix.de>
Sat, 15 Oct 2016 10:34:17 +0000 (12:34 +0200)
commitf573bbc7a7773b8fc0d62be6b79345f5a971d97d
tree3d025e64b3459bd001649606fb6681961e678f66
parent6679dac513fd612f34d3a3d99d7b84ed6d5eb5cc
pkeys: Remove easily triggered WARN

This easy-to-trigger warning shows up instantly when running
Trinity on a kernel with CONFIG_X86_INTEL_MEMORY_PROTECTION_KEYS disabled.

At most this should have been a printk, but the -EINVAL alone should be more
than adequate indicator that something isn't available.

Signed-off-by: Dave Jones <davej@codemonkey.org.uk>
Acked-by: Dave Hansen <dave.hansen@linux.intel.com>
Cc: linux-arch@vger.kernel.org
Cc: arnd@arndb.de
Cc: linux-api@vger.kernel.org
Cc: linux-mm@kvack.org
Cc: luto@kernel.org
Cc: torvalds@linux-foundation.org
Cc: akpm@linux-foundation.org
Cc: mgorman@techsingularity.net
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
include/linux/pkeys.h