]> git.karo-electronics.de Git - linux-beck.git/commitdiff
staging: lustre: lustre: lov: lov_dev: fix sparse warning of static declaration
authorMohammad Jamal <md.jamalmohiuddin@gmail.com>
Tue, 10 Feb 2015 17:18:58 +0000 (22:48 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 2 Mar 2015 01:28:33 +0000 (17:28 -0800)
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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/lustre/lustre/lov/lov_dev.c

index 796a015d070ca50143161779566913c3cff2d1e2..711b837ddba23aa8fa6028a828f06f8753ce979b 100644 (file)
@@ -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[] = {
        {