aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDave Jones <[email protected]>2016-10-14 14:26:24 -0400
committerThomas Gleixner <[email protected]>2016-10-15 12:34:17 +0200
commitf573bbc7a7773b8fc0d62be6b79345f5a971d97d (patch)
tree3d025e64b3459bd001649606fb6681961e678f66
parent6679dac513fd612f34d3a3d99d7b84ed6d5eb5cc (diff)
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 <[email protected]> Acked-by: Dave Hansen <[email protected]> Cc: [email protected] Cc: [email protected] Cc: [email protected] Cc: [email protected] Cc: [email protected] Cc: [email protected] Cc: [email protected] Cc: [email protected] Signed-off-by: Thomas Gleixner <[email protected]>
-rw-r--r--include/linux/pkeys.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/include/linux/pkeys.h b/include/linux/pkeys.h
index e4c08c1ff0c5..a1bacf1150b2 100644
--- a/include/linux/pkeys.h
+++ b/include/linux/pkeys.h
@@ -25,7 +25,6 @@ static inline int mm_pkey_alloc(struct mm_struct *mm)
static inline int mm_pkey_free(struct mm_struct *mm, int pkey)
{
- WARN_ONCE(1, "free of protection key when disabled");
return -EINVAL;
}