Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1470499
| From | Baoyou Xie <baoyou.xie@linaro.org> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH] fix:random:add missing header dependencies |
| Date | 2016-08-26 03:00 +0200 |
| Message-ID | <sadEZ-8mh-3@gated-at.bofh.it> (permalink) |
| Organization | linux.* mail to news gateway |
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
Back to linux.kernel | Previous | Next | Find similar | Unroll thread
[PATCH] fix:random:add missing header dependencies Baoyou Xie <baoyou.xie@linaro.org> - 2016-08-26 03:00 +0200
csiph-web