media: mtk-vcodec: fix warnings: symbol XXX was not declared
Subsystems (2)
PATCH 1/1 media: mtk-vcodec: fix warnings: symbol XXX was not declared
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?
Signed-off-by Tzung-Bi Shih <[email protected]>
---
The patch applies after series [1] to fix the follow up sparse warnings.
[1]: https://patchwork.linuxtv.org/project/linux-media/cover/[email protected]/
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
@@ -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
@@ -372,9 +372,6 @@ static int mtk_vcodec_probe(struct platform_device *pdev)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" ,
Signature · 1 line
2.32.0.605.g8dce9f2422-goog