[hverkuil-media-tree:for-v6.1n 3/15] drivers/media/platform/mediatek/jpeg/mtk_jpeg_core.c:1529:35: error: 'mtk_jpeg_match' undeclared here (not in a function); did you mean 'mtk_jpeg_parse'?

From: kernel test robot
Date: Tue Sep 06 2022 - 16:28:51 EST


tree: git://linuxtv.org/hverkuil/media_tree.git for-v6.1n
head: da25a9a630c28cda51840e500cdf23d083f1a109
commit: e2175d01f345fff1f66b4769efc812d49cb26e7b [3/15] mtk-jpegenc: support jpegenc multi-hardware
config: arm-randconfig-r036-20220906 (https://download.01.org/0day-ci/archive/20220907/202209070432.kPOHuBAP-lkp@xxxxxxxxx/config)
compiler: arm-linux-gnueabi-gcc (GCC) 12.1.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
git remote add hverkuil-media-tree git://linuxtv.org/hverkuil/media_tree.git
git fetch --no-tags hverkuil-media-tree for-v6.1n
git checkout e2175d01f345fff1f66b4769efc812d49cb26e7b
# save the config file
mkdir build_dir && cp config build_dir/.config
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=arm SHELL=/bin/bash drivers/media/platform/mediatek/jpeg/

If you fix the issue, kindly add following tag where applicable
Reported-by: kernel test robot <lkp@xxxxxxxxx>

All errors (new ones prefixed by >>):

>> drivers/media/platform/mediatek/jpeg/mtk_jpeg_core.c:1529:35: error: 'mtk_jpeg_match' undeclared here (not in a function); did you mean 'mtk_jpeg_parse'?
1529 | .of_match_table = mtk_jpeg_match,
| ^~~~~~~~~~~~~~
| mtk_jpeg_parse
drivers/media/platform/mediatek/jpeg/mtk_jpeg_core.c:1489:38: warning: 'mtk_jpeg_drvdata' defined but not used [-Wunused-const-variable=]
1489 | static const struct mtk_jpeg_variant mtk_jpeg_drvdata = {
| ^~~~~~~~~~~~~~~~
drivers/media/platform/mediatek/jpeg/mtk_jpeg_core.c:1474:38: warning: 'mt8173_jpeg_drvdata' defined but not used [-Wunused-const-variable=]
1474 | static const struct mtk_jpeg_variant mt8173_jpeg_drvdata = {
| ^~~~~~~~~~~~~~~~~~~

Kconfig warnings: (for reference only)
WARNING: unmet direct dependencies detected for PM_GENERIC_DOMAINS_OF
Depends on [n]: PM_GENERIC_DOMAINS [=y] && OF [=n]
Selected by [y]:
- QCOM_RPMPD [=y] && PM [=y] && QCOM_SMD_RPM [=y]


vim +1529 drivers/media/platform/mediatek/jpeg/mtk_jpeg_core.c

b2f0d2724ba477 drivers/media/platform/mtk-jpeg/mtk_jpeg_core.c Rick Chang 2016-12-14 1523
b2f0d2724ba477 drivers/media/platform/mtk-jpeg/mtk_jpeg_core.c Rick Chang 2016-12-14 1524 static struct platform_driver mtk_jpeg_driver = {
b2f0d2724ba477 drivers/media/platform/mtk-jpeg/mtk_jpeg_core.c Rick Chang 2016-12-14 1525 .probe = mtk_jpeg_probe,
b2f0d2724ba477 drivers/media/platform/mtk-jpeg/mtk_jpeg_core.c Rick Chang 2016-12-14 1526 .remove = mtk_jpeg_remove,
b2f0d2724ba477 drivers/media/platform/mtk-jpeg/mtk_jpeg_core.c Rick Chang 2016-12-14 1527 .driver = {
b2f0d2724ba477 drivers/media/platform/mtk-jpeg/mtk_jpeg_core.c Rick Chang 2016-12-14 1528 .name = MTK_JPEG_NAME,
b2f0d2724ba477 drivers/media/platform/mtk-jpeg/mtk_jpeg_core.c Rick Chang 2016-12-14 @1529 .of_match_table = mtk_jpeg_match,
b2f0d2724ba477 drivers/media/platform/mtk-jpeg/mtk_jpeg_core.c Rick Chang 2016-12-14 1530 .pm = &mtk_jpeg_pm_ops,
b2f0d2724ba477 drivers/media/platform/mtk-jpeg/mtk_jpeg_core.c Rick Chang 2016-12-14 1531 },
b2f0d2724ba477 drivers/media/platform/mtk-jpeg/mtk_jpeg_core.c Rick Chang 2016-12-14 1532 };
b2f0d2724ba477 drivers/media/platform/mtk-jpeg/mtk_jpeg_core.c Rick Chang 2016-12-14 1533

:::::: The code at line 1529 was first introduced by commit
:::::: b2f0d2724ba477d326e9d654d4db1c93e98f8b93 [media] vcodec: mediatek: Add Mediatek JPEG Decoder Driver

:::::: TO: Rick Chang <rick.chang@xxxxxxxxxxxx>
:::::: CC: Mauro Carvalho Chehab <mchehab@xxxxxxxxxxxxxxxx>

--
0-DAY CI Kernel Test Service
https://01.org/lkp