Messages in this thread Patch in this message | | | From | Tian Tao <> | Subject | [PATCH] random: Fix missing-prototypes in random.c | Date | Mon, 19 Oct 2020 10:37:23 +0800 |
| |
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@hisilicon.com> --- 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
| |