* [PATCH] staging: lustre: lustre: lov: lov_dev: fix sparse warning of static declaration
@ 2015-02-10 17:18 Mohammad Jamal
0 siblings, 0 replies; only message in thread
From: Mohammad Jamal @ 2015-02-10 17:18 UTC (permalink / raw)
To: oleg.drokin, andreas.dilger, gregkh, liang.zhen, HPDD-discuss,
linux-kernel, devel
Cc: Mohammad Jamal
This patch adds a static keyword to cl_lov_device_mutex_class variable
to suppress the warning of static declaration
Signed-off-by: Mohammad Jamal <md.jamalmohiuddin@gmail.com>
---
drivers/staging/lustre/lustre/lov/lov_dev.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/staging/lustre/lustre/lov/lov_dev.c b/drivers/staging/lustre/lustre/lov/lov_dev.c
index 796a015..711b837 100644
--- a/drivers/staging/lustre/lustre/lov/lov_dev.c
+++ b/drivers/staging/lustre/lustre/lov/lov_dev.c
@@ -60,7 +60,7 @@ struct kmem_cache *lovsub_req_kmem;
struct kmem_cache *lov_lock_link_kmem;
/** Lock class of lov_device::ld_mutex. */
-struct lock_class_key cl_lov_device_mutex_class;
+static struct lock_class_key cl_lov_device_mutex_class;
struct lu_kmem_descr lov_caches[] = {
{
--
1.7.9.5
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2015-02-10 17:19 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-02-10 17:18 [PATCH] staging: lustre: lustre: lov: lov_dev: fix sparse warning of static declaration Mohammad Jamal
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®