]> git.karo-electronics.de Git - linux-beck.git/commitdiff
Staging: lustre: lnet: selftest: Made a function static.
authorHeena Sirwani <heenasirwani@gmail.com>
Wed, 1 Oct 2014 09:08:17 +0000 (14:38 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 2 Oct 2014 16:58:15 +0000 (09:58 -0700)
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>
drivers/staging/lustre/lnet/selftest/brw_test.c

index 48d8ed4a1756d59203ac43e33d974dc571f907c8..75b51d835fdd1fc6669e3e2b603afe23a8246cae 100644 (file)
@@ -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);