* [PATCH] Staging: lustre: make obd_device_cachep static
@ 2015-07-16 18:50 Pedro Marzo Perez
0 siblings, 0 replies; only message in thread
From: Pedro Marzo Perez @ 2015-07-16 18:50 UTC (permalink / raw)
To: oleg.drokin, andreas.dilger, gregkh, hamohammed.sa, gdonald, joe,
iskaranth, Julia.Lawall, hongchao.zhang, HPDD-discuss, devel,
linux-kernel
Variable obd_device_cachep is only used inside the file it is declared,
so it is better set as static
Signed-off-by: Pedro Marzo Perez <marzo.pedro@gmail.com>
---
drivers/staging/lustre/lustre/obdclass/genops.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/staging/lustre/lustre/obdclass/genops.c b/drivers/staging/lustre/lustre/obdclass/genops.c
index 66b5678..7e6bbde 100644
--- a/drivers/staging/lustre/lustre/obdclass/genops.c
+++ b/drivers/staging/lustre/lustre/obdclass/genops.c
@@ -45,7 +45,7 @@
spinlock_t obd_types_lock;
-struct kmem_cache *obd_device_cachep;
+static struct kmem_cache *obd_device_cachep;
struct kmem_cache *obdo_cachep;
EXPORT_SYMBOL(obdo_cachep);
static struct kmem_cache *import_cachep;
--
1.9.1
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2015-07-16 16:37 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-07-16 18:50 [PATCH] Staging: lustre: make obd_device_cachep static Pedro Marzo Perez
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®