From: kbuild test robot <fengguang.wu@intel.com>
To: Andrea Mazzoleni <amadvance@gmail.com>
Cc: kbuild-all@01.org, NeilBrown <neilb@suse.de>,
linux-kernel@vger.kernel.org
Subject: [PATCH md] lib: raid: raid_cauchy_init() can be static
Date: Thu, 4 Dec 2014 15:24:22 +0800 [thread overview]
Message-ID: <20141204072422.GA4898@snb.sh.intel.com> (raw)
In-Reply-To: <201412041540.JqqRoMLc%fengguang.wu@intel.com>
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@intel.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
/*
parent reply other threads:[~2014-12-04 7:24 UTC|newest]
Thread overview: expand[flat|nested] mbox.gz Atom feed
[parent not found: <201412041540.JqqRoMLc%fengguang.wu@intel.com>]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20141204072422.GA4898@snb.sh.intel.com \
--to=fengguang.wu@intel.com \
--cc=amadvance@gmail.com \
--cc=kbuild-all@01.org \
--cc=linux-kernel@vger.kernel.org \
--cc=neilb@suse.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.