Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Simon Guo and committed by
Greg Kroah-Hartman
7257f9d1 758ed62b

+1 -1
+1 -1
drivers/staging/lustre/lustre/ptlrpc/client.c
··· 390 390 return rc; 391 391 } 392 392 393 - struct kmem_cache *request_cache; 393 + static struct kmem_cache *request_cache; 394 394 395 395 int ptlrpc_request_cache_init(void) 396 396 {