From: Matt Mooney Date: Wed, 8 Jul 2015 16:21:11 +0000 (-0700) Subject: staging: lustre: make ptlrpc_init static X-Git-Tag: v4.14-rc1~4839^2~716 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9e0e332a7a4ac8a00ba06b536ecda8582b5a0814;p=platform%2Fkernel%2Flinux-rpi.git staging: lustre: make ptlrpc_init static fix sparse warning in lustre/ptlrpc/ptlrpc_module.c:54:12: warning: symbol 'ptlrpc_init' was not declared. Should it be static? The __init macro is moved before the function name to match standard usage. Signed-off-by: Matt Mooney Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/lustre/lustre/ptlrpc/ptlrpc_module.c b/drivers/staging/lustre/lustre/ptlrpc/ptlrpc_module.c index 5268887..ae99180 100644 --- a/drivers/staging/lustre/lustre/ptlrpc/ptlrpc_module.c +++ b/drivers/staging/lustre/lustre/ptlrpc/ptlrpc_module.c @@ -51,7 +51,7 @@ extern spinlock_t ptlrpc_rs_debug_lock; extern struct mutex pinger_mutex; extern struct mutex ptlrpcd_mutex; -__init int ptlrpc_init(void) +static int __init ptlrpc_init(void) { int rc, cleanup_phase = 0;