pkeys: Remove easily triggered WARN
authorDave Jones <davej@codemonkey.org.uk>
Fri, 14 Oct 2016 18:26:24 +0000 (14:26 -0400)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 14 Oct 2016 18:36:59 +0000 (11:36 -0700)
commit496063426dece3f47e21f9f3387205d6ca03bd2a
tree9c02ece6548b4f5ec443ec8b6be18384750b7e75
parente9f8f48bcac6f6dd37ad89ad63d1d1a497332313
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>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
include/linux/pkeys.h