soc / drm: mediatek: Mark mtk_mutex_driver with static keyword
PATCH 1/1 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 <[email protected]>
--- drivers/soc/mediatek/mtk-mutex.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/soc/mediatek/mtk-mutex.c +1 -1
@@ -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 = {
Signature · 7 lines
2.6.2 _______________________________________________ Linux-mediatek mailing list [email protected] http://lists.infradead.org/mailman/listinfo/linux-mediatek
Hi, Zou:
Zou Wei <[email protected]> 於 2021年2月18日 週四 下午3:12寫道:
Quoted 5 lines
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?
Reviewed-by Chun-Kuang Hu <[email protected]>
Quoted 22 lines
Signed-off-by Zou Wei <[email protected]>--- drivers/soc/mediatek/mtk-mutex.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/soc/mediatek/mtk-mutex.c +1
-2@@ -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
Quoted 4 lines
_______________________________________________
Linux-mediatek mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-mediatek
_______________________________________________
Linux-mediatek mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-mediatek