summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorSimon Guo <wei.guo.simon@gmail.com>2015-05-30 16:10:46 +0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2015-05-31 11:31:41 +0900
commit7257f9d1ac2e06a10f753d65ce819de70cf678fa (patch)
tree577933abb6b4dce0039c1f27fc0a065b8e5e16fc /drivers
parent758ed62b0ee818fc814e85c9680f3f8236e812fe (diff)
downloadlinux-7257f9d1ac2e06a10f753d65ce819de70cf678fa.tar.gz
linux-7257f9d1ac2e06a10f753d65ce819de70cf678fa.tar.bz2
linux-7257f9d1ac2e06a10f753d65ce819de70cf678fa.zip
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 <wei.guo.simon@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/staging/lustre/lustre/ptlrpc/client.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/lustre/lustre/ptlrpc/client.c b/drivers/staging/lustre/lustre/ptlrpc/client.c
index 45b7af77c37e..347110e6e822 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)
{