2020-10-19 10:00:27

by Tian Tao

[permalink] [raw]
Subject: [PATCH] random: Fix missing-prototypes in random.c

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 <[email protected]>
---
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