[PATCH] random: Fix missing-prototypes in random.c
From: Tian Tao
Date: Sun Oct 18 2020 - 22:36:55 EST
Fix the following warnings.
drivers/char/random.c:2297:6: warning: no previous prototype for
‘add_hwgenerator_randomness’ [-Wmissing-prototypes]
Signed-off-by: Tian Tao <tiantao6@xxxxxxxxxxxxx>
---
drivers/char/random.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/char/random.c b/drivers/char/random.c
index d20ba1b..1bf06d6 100644
--- a/drivers/char/random.c
+++ b/drivers/char/random.c
@@ -321,6 +321,7 @@
#include <linux/init.h>
#include <linux/fs.h>
#include <linux/genhd.h>
+#include <linux/hw_random.h>
#include <linux/interrupt.h>
#include <linux/mm.h>
#include <linux/nodemask.h>
--
2.7.4