linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] drivers/char/random.c: add missing include <linux/hw_random.h>
@ 2018-11-13 22:28 Paolo Cretaro
  0 siblings, 0 replies; only message in thread
From: Paolo Cretaro @ 2018-11-13 22:28 UTC (permalink / raw)
  To: tytso; +Cc: arnd, gregkh, linux-kernel, Paolo Cretaro

Include linux/hw_random.h header file to silence the following
Wmissing-prototypes gcc warning:
drivers/char/random.c:2346:6: warning: no previous prototype for ‘add_hwgenerator_randomness’ [-Wmissing-prototypes]

Signed-off-by: Paolo Cretaro <paolocretaro@gmail.com>
---
 drivers/char/random.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/char/random.c b/drivers/char/random.c
index 0a381897e4a5..02c65dd417ae 100644
--- a/drivers/char/random.c
+++ b/drivers/char/random.c
@@ -265,6 +265,7 @@
 #include <linux/syscalls.h>
 #include <linux/completion.h>
 #include <linux/uuid.h>
+#include <linux/hw_random.h>
 #include <crypto/chacha20.h>
 
 #include <asm/processor.h>
-- 
2.19.1


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2018-11-13 22:28 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-11-13 22:28 [PATCH] drivers/char/random.c: add missing include <linux/hw_random.h> Paolo Cretaro

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).