[OPW,kernel,06/10] staging: lustre: Fix sparse warnings for static declarations
diff mbox

Message ID 3f44210315c18630d8d7112dd1e969de298271ba.1383233124.git.dulshani.gunawardhana89@gmail.com
State New, archived
Headers show

Commit Message

Dulshani Gunawardhana Oct. 31, 2013, 3:32 p.m. UTC
Fix the following sparse warnings in genops.c

drivers/staging/lustre/lustre/obdclass/genops.c:48:12: warning: symbol
'obd_types_lock' was not declared. Should it be static?
drivers/staging/lustre/lustre/obdclass/genops.c:50:19: warning: symbol
'obd_device_cachep' was not declared. Should it be static?
drivers/staging/lustre/lustre/obdclass/genops.c:53:19: warning: symbol
'import_cachep' was not declared. Should it be static?
drivers/staging/lustre/lustre/obdclass/genops.c:55:23: warning: symbol
'obd_zombie_imports' was not declared. Should it be static?
drivers/staging/lustre/lustre/obdclass/genops.c:56:23: warning: symbol
'obd_zombie_exports' was not declared. Should it be static?
drivers/staging/lustre/lustre/obdclass/genops.c:57:13: warning: symbol
'obd_zombie_impexp_lock' was not declared. Should it be static?

Signed-off-by: Dulshani Gunawardhana <dulshani.gunawardhana89@gmail.com>
---
 drivers/staging/lustre/lustre/obdclass/genops.c | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

Patch
diff mbox

diff --git a/drivers/staging/lustre/lustre/obdclass/genops.c b/drivers/staging/lustre/lustre/obdclass/genops.c
index f6fae16..4eafb8d 100644
--- a/drivers/staging/lustre/lustre/obdclass/genops.c
+++ b/drivers/staging/lustre/lustre/obdclass/genops.c
@@ -45,16 +45,16 @@ 
 #include <lprocfs_status.h>
 
 extern struct list_head obd_types;
-spinlock_t obd_types_lock;
+static 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);
-struct kmem_cache *import_cachep;
+static struct kmem_cache *import_cachep;
 
-struct list_head      obd_zombie_imports;
-struct list_head      obd_zombie_exports;
-spinlock_t  obd_zombie_impexp_lock;
+static struct list_head      obd_zombie_imports;
+static struct list_head      obd_zombie_exports;
+static spinlock_t  obd_zombie_impexp_lock;
 static void obd_zombie_impexp_notify(void);
 static void obd_zombie_export_add(struct obd_export *exp);
 static void obd_zombie_import_add(struct obd_import *imp);