* [PATCH] char/random: include <linux/hw_random.h> for add_hwgenerator_randomness
@ 2019-10-16 10:44 Ben Dooks (Codethink)
0 siblings, 0 replies; only message in thread
From: Ben Dooks (Codethink) @ 2019-10-16 10:44 UTC (permalink / raw)
To: linux-kernel
Cc: Ben Dooks (Codethink),
Theodore Ts'o, Arnd Bergmann, Greg Kroah-Hartman,
linux-kernel
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?
Signed-off-by: Ben Dooks <ben.dooks@codethink.co.uk>
---
Cc: "Theodore Ts'o" <tytso@mit.edu>
Cc: Arnd Bergmann <arnd@arndb.de>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: linux-kernel@vger.kernel.org
---
drivers/char/random.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/char/random.c b/drivers/char/random.c
index de434feb873a..da9a58068621 100644
--- a/drivers/char/random.c
+++ b/drivers/char/random.c
@@ -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>
--
2.23.0
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2019-10-16 10:45 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-10-16 10:44 [PATCH] char/random: include <linux/hw_random.h> for add_hwgenerator_randomness Ben Dooks (Codethink)
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®