From: Jia He Date: Tue, 16 Dec 2014 14:37:36 +0000 (+0800) Subject: staging: lustre: libcfs: fix sparse warnings about static declaration X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=054cd8374facbefeafa335d6c3c663939612a889;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git staging: lustre: libcfs: fix sparse warnings about static declaration make sparse happy since these two fuchtion are only used in module.c. tested by successful compilation. Signed-off-by: Jia He Cc: Oleg Drokin Cc: Andreas Dilger Cc: Greg Kroah-Hartman Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/lustre/lustre/libcfs/module.c b/drivers/staging/lustre/lustre/libcfs/module.c index 2c4fc74505bc..b9ee37ce31f3 100644 --- a/drivers/staging/lustre/lustre/libcfs/module.c +++ b/drivers/staging/lustre/lustre/libcfs/module.c @@ -42,8 +42,7 @@ #include "../../include/linux/lnet/lnet.h" #include "tracefile.h" -void -kportal_memhog_free (struct libcfs_device_userstate *ldu) +static void kportal_memhog_free (struct libcfs_device_userstate *ldu) { struct page **level0p = &ldu->ldu_memhog_root_page; struct page **level1p; @@ -86,8 +85,7 @@ kportal_memhog_free (struct libcfs_device_userstate *ldu) LASSERT (ldu->ldu_memhog_pages == 0); } -int -kportal_memhog_alloc(struct libcfs_device_userstate *ldu, int npages, +static int kportal_memhog_alloc(struct libcfs_device_userstate *ldu, int npages, gfp_t flags) { struct page **level0p;