lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-Id: <1472172686-10703-1-git-send-email-baoyou.xie@linaro.org>
Date:   Fri, 26 Aug 2016 08:51:26 +0800
From:   Baoyou Xie <baoyou.xie@...aro.org>
To:     tytso@....edu, arnd@...db.de, gregkh@...uxfoundation.org
Cc:     linux-kernel@...r.kernel.org, xie.baoyou@....com.cn,
        baoyou.xie@...aro.org
Subject: [PATCH] fix:random:add missing header dependencies

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@...aro.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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ