From: Heena Sirwani Date: Wed, 1 Oct 2014 09:09:02 +0000 (+0530) Subject: Staging: lustre: lnet: selftest: Made a function static. X-Git-Tag: firefly_0821_release~176^2~3121^2~39 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=43311238ce5864a8b01d35931d63da14044a2c0d;p=firefly-linux-kernel-4.4.55.git 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_check_page' was not declared. Should it be static? The above warning was reported by sparse. Signed-off-by: Heena Sirwani Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/lustre/lnet/selftest/brw_test.c b/drivers/staging/lustre/lnet/selftest/brw_test.c index 75b51d835fdd..4a6da10676e0 100644 --- a/drivers/staging/lustre/lnet/selftest/brw_test.c +++ b/drivers/staging/lustre/lnet/selftest/brw_test.c @@ -178,7 +178,7 @@ brw_fill_page(struct page *pg, int pattern, __u64 magic) return; } -int +static int brw_check_page(struct page *pg, int pattern, __u64 magic) { char *addr = page_address(pg);