All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] fix:random:add missing header dependencies
@ 2016-08-26  0:51 Baoyou Xie
  0 siblings, 0 replies; only message in thread
From: Baoyou Xie @ 2016-08-26  0:51 UTC (permalink / raw)
  To: tytso, arnd, gregkh; +Cc: linux-kernel, xie.baoyou, baoyou.xie

We get 1 warning when biuld kernel with W=1:
drivers/char/random.c:2126:6: warning: no previous prototype
for 'add_hwgenerator_randomness' [-Wmissing-prototypes]

In fact, this function is declared in hw_random.h, so this patch
add missing header dependencies.

Signed-off-by: Baoyou Xie <baoyou.xie@linaro.org>
---
 drivers/char/random.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/char/random.c b/drivers/char/random.c
index 3efb3bf..155ea8b 100644
--- a/drivers/char/random.c
+++ b/drivers/char/random.c
@@ -262,6 +262,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.7.4

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

only message in thread, other threads:[~2016-08-26  0:52 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-08-26  0:51 [PATCH] fix:random:add missing header dependencies Baoyou Xie

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.