[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <1613633299-88332-1-git-send-email-zou_wei@huawei.com>
Date: Thu, 18 Feb 2021 15:28:19 +0800
From: Zou Wei <zou_wei@...wei.com>
To: <matthias.bgg@...il.com>
CC: <ck.hu@...iatek.com>, <linux-arm-kernel@...ts.infradead.org>,
<linux-mediatek@...ts.infradead.org>,
<linux-kernel@...r.kernel.org>, Zou Wei <zou_wei@...wei.com>
Subject: [PATCH -next] soc / drm: mediatek: Mark mtk_mutex_driver with static keyword
Fix the following sparse warning:
drivers/soc/mediatek/mtk-mutex.c:464:24: warning: symbol 'mtk_mutex_driver' was not declared. Should it be static?
Signed-off-by: Zou Wei <zou_wei@...wei.com>
---
drivers/soc/mediatek/mtk-mutex.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/soc/mediatek/mtk-mutex.c b/drivers/soc/mediatek/mtk-mutex.c
index f531b11..3a315a6 100644
--- a/drivers/soc/mediatek/mtk-mutex.c
+++ b/drivers/soc/mediatek/mtk-mutex.c
@@ -461,7 +461,7 @@ static const struct of_device_id mutex_driver_dt_match[] = {
};
MODULE_DEVICE_TABLE(of, mutex_driver_dt_match);
-struct platform_driver mtk_mutex_driver = {
+static struct platform_driver mtk_mutex_driver = {
.probe = mtk_mutex_probe,
.remove = mtk_mutex_remove,
.driver = {
--
2.6.2
Powered by blists - more mailing lists