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]
Date:	Thu, 4 Dec 2014 15:24:22 +0800
From:	kbuild test robot <fengguang.wu@...el.com>
To:	Andrea Mazzoleni <amadvance@...il.com>
Cc:	kbuild-all@...org, NeilBrown <neilb@...e.de>,
	linux-kernel@...r.kernel.org
Subject: [PATCH md] lib: raid: raid_cauchy_init() can be static

lib/raid/module.c:417:12: sparse: symbol 'raid_cauchy_init' was not declared. Should it be static?
lib/raid/raid.c:156:9: sparse: symbol 'raid_zero_block' was not declared. Should it be static?

Signed-off-by: Fengguang Wu <fengguang.wu@...el.com>
---
 module.c |    2 +-
 raid.c   |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/lib/raid/module.c b/lib/raid/module.c
index 8d45ab4..37962b0 100644
--- a/lib/raid/module.c
+++ b/lib/raid/module.c
@@ -414,7 +414,7 @@ int raid_speedtest(int displacement)
 #ifdef __KERNEL__ /* to build the user mode test */
 static int speedtest;
 
-int __init raid_cauchy_init(void)
+static int __init raid_cauchy_init(void)
 {
 	int ret;
 
diff --git a/lib/raid/raid.c b/lib/raid/raid.c
index e1b1660..c662f97 100644
--- a/lib/raid/raid.c
+++ b/lib/raid/raid.c
@@ -153,7 +153,7 @@
 /**
  * Buffer filled with 0 used in recovering.
  */
-uint8_t raid_zero_block[PAGE_SIZE] __aligned(256);
+static uint8_t raid_zero_block[PAGE_SIZE] __aligned(256);
 
 #ifdef RAID_USE_XOR_BLOCKS
 /*
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ