Skip to contentSkip to conversation

media: mtk-vcodec: fix warnings: symbol XXX was not declared

git:media_stage/master Mauro Carvalho Chehab 1 participant 1 message Aug 12, 2021

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

This is an automatic generated email to let you know that the following patch were queued:

Subject: media: mtk-vcodec: fix warnings: symbol XXX was not declared
Author:  Tzung-Bi Shih <[email protected]>
Date:    Mon Aug 9 15:19:40 2021 +0200

Fixes sparse warnings:
- warning: symbol 'mtk_vdec_8173_pdata' was not declared. Should it be static?
- warning: symbol 'mtk_vdec_8183_pdata' was not declared. Should it be static?

 drivers/media/platform/mtk-vcodec/mtk_vcodec_dec.h     | 2 ++
 drivers/media/platform/mtk-vcodec/mtk_vcodec_dec_drv.c | 3 ---
 2 files changed, 2 insertions(+), 3 deletions(-)

---

drivers/media/platform/mtk-vcodec/mtk_vcodec_dec.h +2 -0
index 9fbd24186c1a..46783516b84a 100644
@@ -65,6 +65,8 @@ struct mtk_video_dec_buf {
 extern const struct v4l2_ioctl_ops mtk_vdec_ioctl_ops;
 extern const struct v4l2_m2m_ops mtk_vdec_m2m_ops;
 extern const struct media_device_ops mtk_vcodec_media_ops;
+extern const struct mtk_vcodec_dec_pdata mtk_vdec_8173_pdata;
+extern const struct mtk_vcodec_dec_pdata mtk_vdec_8183_pdata;
 
 
 /*
drivers/media/platform/mtk-vcodec/mtk_vcodec_dec_drv.c +0 -3
index 36ae3e6017f0..e6e6a8203eeb 100644
@@ -372,9 +372,6 @@ err_dec_pm:
 	return ret;
 }
 
-extern const struct mtk_vcodec_dec_pdata mtk_vdec_8173_pdata;
-extern const struct mtk_vcodec_dec_pdata mtk_vdec_8183_pdata;
-
 static const struct of_device_id mtk_vcodec_match[] = {
 	{
 		.compatible = "mediatek,mt8173-vcodec-dec",

_______________________________________________
Linux-mediatek mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-mediatek