Skip to contentSkip to conversation

staging: lustre: lustre: lov: lov_dev: fix sparse warning of static declaration

PATCH New Mohammad Jamal 1 participant 1 message Feb 10, 2015 Staging

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 staging: lustre: lustre: lov: lov_dev: fix sparse warning of static declaration

This patch adds a static keyword to cl_lov_device_mutex_class variable to suppress the warning of static declaration

---
 drivers/staging/lustre/lustre/lov/lov_dev.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/staging/lustre/lustre/lov/lov_dev.c +1 -1
index 796a015..711b837 100644
@@ -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[] = {
 	{
Signature · 1 line
1.7.9.5