[<prev] [next>] [day] [month] [year] [list]
Message-ID: <20190417145858.30300-1-yuehaibing@huawei.com>
Date: Wed, 17 Apr 2019 22:58:58 +0800
From: Yue Haibing <yuehaibing@...wei.com>
To: <gregkh@...uxfoundation.org>, <christian.gromm@...rochip.com>
CC: <linux-kernel@...r.kernel.org>, <devel@...verdev.osuosl.org>,
YueHaibing <yuehaibing@...wei.com>
Subject: [PATCH -next] staging: most: configfs: Make mdev_link_list static
From: YueHaibing <yuehaibing@...wei.com>
Fix sparse warning:
drivers/staging/most/configfs.c:34:18: warning:
symbol 'mdev_link_list' was not declared. Should it be static?
Reported-by: Hulk Robot <hulkci@...wei.com>
Signed-off-by: YueHaibing <yuehaibing@...wei.com>
---
drivers/staging/most/configfs.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/staging/most/configfs.c b/drivers/staging/most/configfs.c
index 934fb6d..1d8bf29 100644
--- a/drivers/staging/most/configfs.c
+++ b/drivers/staging/most/configfs.c
@@ -31,7 +31,7 @@ struct mdev_link {
char comp_params[PAGE_SIZE];
};
-struct list_head mdev_link_list;
+static struct list_head mdev_link_list;
static int set_cfg_buffer_size(struct mdev_link *link)
{
--
2.7.4
Powered by blists - more mailing lists