summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHeena Sirwani <heenasirwani@gmail.com>2014-10-01 09:08:17 (GMT)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-10-02 16:58:15 (GMT)
commit2e3e133d2ec87e9c0b82d338e4491f766c1113b1 (patch)
treeb927c8f4751ddb3b2a57914f1abc7f6a72839161
parentd4b2d88a08c64fd57ff93a0f21db87d4c7c35bac (diff)
downloadlinux-2e3e133d2ec87e9c0b82d338e4491f766c1113b1.tar.xz
Staging: lustre: lnet: selftest: Made a function static.
The following patch makes a function static as it was not used by other files. The patch fixes the warning: WARNING: symbol 'brw_fill_page' was not declared. Should it be static? The above warning was reported by sparse. Signed-off-by: Heena Sirwani <heenasirwani@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r--drivers/staging/lustre/lnet/selftest/brw_test.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/lustre/lnet/selftest/brw_test.c b/drivers/staging/lustre/lnet/selftest/brw_test.c
index 48d8ed4..75b51d8 100644
--- a/drivers/staging/lustre/lnet/selftest/brw_test.c
+++ b/drivers/staging/lustre/lnet/selftest/brw_test.c
@@ -147,7 +147,7 @@ brw_inject_one_error(void)
return brw_inject_errors--;
}
-void
+static void
brw_fill_page(struct page *pg, int pattern, __u64 magic)
{
char *addr = page_address(pg);