From: Mohammad Jamal Date: Tue, 10 Feb 2015 17:18:58 +0000 (+0530) Subject: staging: lustre: lustre: lov: lov_dev: fix sparse warning of static declaration X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=43a9a85aa1ca14f5c477eb1ecadd54ebe1f4b6da;p=openwrt%2Fstaging%2Fblogic.git 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 Signed-off-by: Mohammad Jamal Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/lustre/lustre/lov/lov_dev.c b/drivers/staging/lustre/lustre/lov/lov_dev.c index 796a015d070c..711b837ddba2 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[] = { {