Skip to contentSkip to conversation

char/random: include <linux/hw_random.h> for add_hwgenerator_randomness

PATCH New Ben Dooks (Codethink) 1 participant 1 message Oct 16, 2019 Random number driver

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 char/random: include <linux/hw_random.h> for add_hwgenerator_randomness

The add_hwgenerator_randomness() is declared in <linux/hw_random.h> but this is not being included in drivers/char/random.c so fix the following sparse warning by including it:

drivers/char/random.c:2489:6: warning: symbol 'add_hwgenerator_randomness' was not declared. Should it be static?

---
Cc: "Theodore Ts'o" <[email protected]>
Cc: Arnd Bergmann <[email protected]>
Cc: Greg Kroah-Hartman <[email protected]>
Cc: [email protected]

---
 drivers/char/random.c | 1 +
 1 file changed, 1 insertion(+)
drivers/char/random.c +1 -0
index de434feb873a..da9a58068621 100644
@@ -336,6 +336,7 @@
 #include <linux/completion.h>
 #include <linux/uuid.h>
 #include <crypto/chacha.h>
+#include <linux/hw_random.h>
 
 #include <asm/processor.h>
 #include <linux/uaccess.h>
Signature · 1 line
2.23.0