Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1490541 > unrolled thread

[PATCH] random: add missing header dependencies

Started byBaoyou Xie <baoyou.xie@linaro.org>
First post2016-09-24 06:30 +0200
Last post2016-09-24 06:30 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel


Contents

  [PATCH] random: add missing header dependencies Baoyou Xie <baoyou.xie@linaro.org> - 2016-09-24 06:30 +0200

#1490541 — [PATCH] random: add missing header dependencies

FromBaoyou Xie <baoyou.xie@linaro.org>
Date2016-09-24 06:30 +0200
Subject[PATCH] random: add missing header dependencies
Message-ID<skML7-4ME-3@gated-at.bofh.it>
We get 1 warning when building kernel with W=1:
drivers/char/random.c:2140:6: warning: no previous prototype for 'add_hwgenerator_randomness' [-Wmissing-prototypes]

In fact, this function is declared in include/linux/hw_random.h,
so this patch adds 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 d6876d5..aa0950a 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

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web