From: Simon Guo Date: Sat, 30 May 2015 08:10:46 +0000 (+0800) Subject: STAGING: Declare request_cache as static for drivers/staging/lustre/lustre/ptlrpc... X-Git-Tag: v4.14-rc1~5163^2~467 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7257f9d1ac2e06a10f753d65ce819de70cf678fa;p=platform%2Fkernel%2Flinux-rpi.git STAGING: Declare request_cache as static for drivers/staging/lustre/lustre/ptlrpc/client.c Declare request_cache variable as static. It is only used by drivers/staging/lustre/lustre/ptlrpc/client.c, and its naming is common which will lead to namespace pollution. Signed-off-by: Simon Guo Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/lustre/lustre/ptlrpc/client.c b/drivers/staging/lustre/lustre/ptlrpc/client.c index 45b7af7..347110e 100644 --- a/drivers/staging/lustre/lustre/ptlrpc/client.c +++ b/drivers/staging/lustre/lustre/ptlrpc/client.c @@ -390,7 +390,7 @@ static int ptlrpc_at_recv_early_reply(struct ptlrpc_request *req) return rc; } -struct kmem_cache *request_cache; +static struct kmem_cache *request_cache; int ptlrpc_request_cache_init(void) {