[PATCH 03/16] char: random: Include header containing our prototypes
From: Lee Jones
Date: Thu May 20 2021 - 08:50:26 EST
Fixes the following W=1 kernel build warning(s):
drivers/char/random.c:2283:6: warning: no previous prototype for ‘add_hwgenerator_randomness’ [-Wmissing-prototypes]
Cc: "Theodore Ts'o" <tytso@xxxxxxx>
Cc: "Jason A. Donenfeld" <Jason@xxxxxxxxx>
Cc: Matt Mackall <mpm@xxxxxxxxxxx>
Signed-off-by: Lee Jones <lee.jones@xxxxxxxxxx>
---
drivers/char/random.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/char/random.c b/drivers/char/random.c
index 605969ed0f965..852e765aea62c 100644
--- a/drivers/char/random.c
+++ b/drivers/char/random.c
@@ -317,6 +317,7 @@
#include <linux/fcntl.h>
#include <linux/slab.h>
#include <linux/random.h>
+#include <linux/hw_random.h>
#include <linux/poll.h>
#include <linux/init.h>
#include <linux/fs.h>
--
2.31.1