diff --git a/include/linux/pkeys.h b/include/linux/pkeys.h
index e4c08c1ff0c5906786f549c36fbc9b060f323e58..a1bacf1150b2146e6cf560740459edf08f0c18a5 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;
 }