Skip to content

Commit

Permalink
pkeys: Remove easily triggered WARN
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
kernelslacker authored and KAGA-KOKO committed Oct 15, 2016
1 parent 6679dac commit f573bbc
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion include/linux/pkeys.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit f573bbc

Please sign in to comment.