From: Sudip Mukherjee Date: Sun, 31 Aug 2014 09:53:35 +0000 (+0530) Subject: staging: lustre: lnet: lib-ptl.c: sparsa warning: symbol not declared X-Git-Tag: firefly_0821_release~176^2~3121^2~869 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=3ace5213e4fe6ae26260a9cafe11b3e7c3efcc4f;p=firefly-linux-kernel-4.4.55.git staging: lustre: lnet: lib-ptl.c: sparsa warning: symbol not declared fixed sparse warning of following symbol not declared: warning: symbol 'lnet_ptl_cleanup' was not declared. Should it be static? warning: symbol 'lnet_ptl_setup' was not declared. Should it be static? Signed-off-by: Sudip Mukherjee Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/lustre/lnet/lnet/lib-ptl.c b/drivers/staging/lustre/lnet/lnet/lib-ptl.c index 91767c9e15dd..720c73be4d3c 100644 --- a/drivers/staging/lustre/lnet/lnet/lib-ptl.c +++ b/drivers/staging/lustre/lnet/lnet/lib-ptl.c @@ -712,7 +712,7 @@ lnet_ptl_attach_md(lnet_me_t *me, lnet_libmd_t *md, lnet_ptl_unlock(ptl); } -void +static void lnet_ptl_cleanup(struct lnet_portal *ptl) { struct lnet_match_table *mtable; @@ -750,7 +750,7 @@ lnet_ptl_cleanup(struct lnet_portal *ptl) ptl->ptl_mtables = NULL; } -int +static int lnet_ptl_setup(struct lnet_portal *ptl, int index) { struct lnet_match_table *mtable;