From: YueHaibing yuehaibing@huawei.com
mainline inclusion from mainline-5.2 commit 794a3b6b9f8af8a23bf127d8ec1cd1234ef3fb17 category: bugfix bugzilla: NA CVE: NA
-------------------------------------------------
Fix sparse warning:
drivers/char/ipmi/ipmi_msghandler.c:635:20: warning: symbol 'ipmi_interfaces_srcu' was not declared. Should it be static?
Signed-off-by: YueHaibing yuehaibing@huawei.com Message-Id: 20190320133505.21984-1-yuehaibing@huawei.com Signed-off-by: Corey Minyard cminyard@mvista.com Signed-off-by: Wenchao Hao haowenchao@huawei.com Reviewed-by: Miaohe Lin linmiaohe@huawei.com Signed-off-by: Yang Yingliang yangyingliang@huawei.com --- drivers/char/ipmi/ipmi_msghandler.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/char/ipmi/ipmi_msghandler.c b/drivers/char/ipmi/ipmi_msghandler.c index cb85516e1eb3c..e6b985d04ac9b 100644 --- a/drivers/char/ipmi/ipmi_msghandler.c +++ b/drivers/char/ipmi/ipmi_msghandler.c @@ -619,7 +619,7 @@ static DEFINE_MUTEX(ipmidriver_mutex);
static LIST_HEAD(ipmi_interfaces); static DEFINE_MUTEX(ipmi_interfaces_mutex); -struct srcu_struct ipmi_interfaces_srcu; +static struct srcu_struct ipmi_interfaces_srcu;
/* * List of watchers that want to know when smi's are added and deleted.