Re: [PATCH v12 05/12] media: mediatek: jpeg: Fix multi-core clk suspend and resume setting
From: kernel test robot <hidden>
Date: 2026-01-23 12:26:59
Also in:
linux-devicetree, linux-media, linux-mediatek, lkml, oe-kbuild-all
Hi Kyrie, kernel test robot noticed the following build warnings: [auto build test WARNING on robh/for-next] [also build test WARNING on linuxtv-media-pending/master media-tree/master linus/master v6.19-rc6 next-20260122] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in https://git-scm.com/docs/git-format-patch#_base_tree_information] url: https://github.com/intel-lab-lkp/linux/commits/Kyrie-Wu/media-mediatek-jpeg-fix-jpeg-cores-amounts-setting/20260123-112425 base: https://git.kernel.org/pub/scm/linux/kernel/git/robh/linux.git for-next patch link: https://lore.kernel.org/r/20260123031713.14621-6-kyrie.wu%40mediatek.com patch subject: [PATCH v12 05/12] media: mediatek: jpeg: Fix multi-core clk suspend and resume setting config: parisc-allyesconfig (https://download.01.org/0day-ci/archive/20260123/202601232059.fCMMbALw-lkp@intel.com/config) compiler: hppa-linux-gcc (GCC) 15.2.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260123/202601232059.fCMMbALw-lkp@intel.com/reproduce) If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags | Reported-by: kernel test robot [off-list ref] | Closes: https://lore.kernel.org/oe-kbuild-all/202601232059.fCMMbALw-lkp@intel.com/ (local) All warnings (new ones prefixed by >>):
quoted
drivers/media/platform/mediatek/jpeg/mtk_jpeg_enc_hw.c:429:12: warning: 'mtk_jpegenc_resume' defined but not used [-Wunused-function]
429 | static int mtk_jpegenc_resume(struct device *dev)
| ^~~~~~~~~~~~~~~~~~quoted
drivers/media/platform/mediatek/jpeg/mtk_jpeg_enc_hw.c:420:12: warning: 'mtk_jpegenc_suspend' defined but not used [-Wunused-function]
420 | static int mtk_jpegenc_suspend(struct device *dev)
| ^~~~~~~~~~~~~~~~~~~quoted
drivers/media/platform/mediatek/jpeg/mtk_jpeg_enc_hw.c:412:12: warning: 'mtk_jpegenc_pm_resume' defined but not used [-Wunused-function]
412 | static int mtk_jpegenc_pm_resume(struct device *dev)
| ^~~~~~~~~~~~~~~~~~~~~quoted
drivers/media/platform/mediatek/jpeg/mtk_jpeg_enc_hw.c:402:12: warning: 'mtk_jpegenc_pm_suspend' defined but not used [-Wunused-function]
402 | static int mtk_jpegenc_pm_suspend(struct device *dev)
| ^~~~~~~~~~~~~~~~~~~~~~
--
drivers/media/platform/mediatek/jpeg/mtk_jpeg_dec_hw.c: In function 'mtk_jpegdec_hw_irq_handler':quoted
drivers/media/platform/mediatek/jpeg/mtk_jpeg_dec_hw.c:549:30: warning: variable 'ctx' set but not used [-Wunused-but-set-variable]
549 | struct mtk_jpeg_ctx *ctx;
| ^~~
drivers/media/platform/mediatek/jpeg/mtk_jpeg_dec_hw.c: At top level:quoted
drivers/media/platform/mediatek/jpeg/mtk_jpeg_dec_hw.c:707:12: warning: 'mtk_jpegdec_resume' defined but not used [-Wunused-function]
707 | static int mtk_jpegdec_resume(struct device *dev)
| ^~~~~~~~~~~~~~~~~~quoted
drivers/media/platform/mediatek/jpeg/mtk_jpeg_dec_hw.c:698:12: warning: 'mtk_jpegdec_suspend' defined but not used [-Wunused-function]
698 | static int mtk_jpegdec_suspend(struct device *dev)
| ^~~~~~~~~~~~~~~~~~~quoted
drivers/media/platform/mediatek/jpeg/mtk_jpeg_dec_hw.c:690:12: warning: 'mtk_jpegdec_pm_resume' defined but not used [-Wunused-function]
690 | static int mtk_jpegdec_pm_resume(struct device *dev)
| ^~~~~~~~~~~~~~~~~~~~~quoted
drivers/media/platform/mediatek/jpeg/mtk_jpeg_dec_hw.c:680:12: warning: 'mtk_jpegdec_pm_suspend' defined but not used [-Wunused-function]
680 | static int mtk_jpegdec_pm_suspend(struct device *dev)
| ^~~~~~~~~~~~~~~~~~~~~~
vim +/mtk_jpegenc_resume +429 drivers/media/platform/mediatek/jpeg/mtk_jpeg_enc_hw.c
401
> 402 static int mtk_jpegenc_pm_suspend(struct device *dev)
403 {
404 struct mtk_jpegenc_comp_dev *jpeg = dev_get_drvdata(dev);
405
406 clk_bulk_disable_unprepare(jpeg->venc_clk.clk_num,
407 jpeg->venc_clk.clks);
408
409 return 0;
410 }
411
> 412 static int mtk_jpegenc_pm_resume(struct device *dev)
413 {
414 struct mtk_jpegenc_comp_dev *jpeg = dev_get_drvdata(dev);
415
416 return clk_bulk_prepare_enable(jpeg->venc_clk.clk_num,
417 jpeg->venc_clk.clks);
418 }
419
> 420 static int mtk_jpegenc_suspend(struct device *dev)
421 {
422 struct mtk_jpegenc_comp_dev *jpeg = dev_get_drvdata(dev);
423
424 v4l2_m2m_suspend(jpeg->master_dev->m2m_dev);
425
426 return pm_runtime_force_suspend(dev);
427 }
428
> 429 static int mtk_jpegenc_resume(struct device *dev)
430 {
431 struct mtk_jpegenc_comp_dev *jpeg = dev_get_drvdata(dev);
432 int ret;
433
434 ret = pm_runtime_force_resume(dev);
435 if (ret < 0)
436 return ret;
437
438 v4l2_m2m_resume(jpeg->master_dev->m2m_dev);
439
440 return 0;
441 }
442
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki