[PATCH 06/18] fscrypt: Include <linux/prandom.h> instead of <linux/random.h>
From: Uros Bizjak
Date: Thu Sep 05 2024 - 08:22:01 EST
Usage of pseudo-random functions requires inclusion of
<linux/prandom.h> header instead of <linux/random.h>.
Signed-off-by: Uros Bizjak <ubizjak@xxxxxxxxx>
Cc: Eric Biggers <ebiggers@xxxxxxxxxx>
Cc: "Theodore Y. Ts'o" <tytso@xxxxxxx>
Cc: Jaegeuk Kim <jaegeuk@xxxxxxxxxx>
Cc. linux-fscrypt@xxxxxxxxxxxxxxx
---
fs/crypto/keyring.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/fs/crypto/keyring.c b/fs/crypto/keyring.c
index 6681a71625f0..e2c10b3b960b 100644
--- a/fs/crypto/keyring.c
+++ b/fs/crypto/keyring.c
@@ -21,7 +21,7 @@
#include <asm/unaligned.h>
#include <crypto/skcipher.h>
#include <linux/key-type.h>
-#include <linux/random.h>
+#include <linux/prandom.h>
#include <linux/seq_file.h>
#include "fscrypt_private.h"
--
2.46.0