Skip to contentSkip to conversation

drivers/char/random.c: add missing include <linux/hw_random.h>

PATCH New Paolo Cretaro 1 participant 1 message Nov 13, 2018 Random number driver

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drivers/char/random.c: add missing include <linux/hw_random.h>

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]

---
 drivers/char/random.c | 1 +
 1 file changed, 1 insertion(+)
drivers/char/random.c +1 -0
index 0a381897e4a5..02c65dd417ae 100644
@@ -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>
Signature · 1 line
2.19.1