drivers/gpu/drm/mediatek/mtk_hdmi_ddc_v2.c:384:24: sparse: sparse: symbol 'mtk_hdmi_ddc_v2_driver' was not declared. Should it be static?
From: kernel test robot
Date: Fri May 15 2026 - 18:24:01 EST
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: d458a240344c4369bf6f3da203f2779515177738
commit: 8d0f798862731c62b09e7138a9032964d70566c2 drm/mediatek: Introduce HDMI/DDC v2 for MT8195/MT8188
date: 6 months ago
config: openrisc-randconfig-r132-20260516 (https://download.01.org/0day-ci/archive/20260516/202605160625.YbQZbGyz-lkp@xxxxxxxxx/config)
compiler: or1k-linux-gcc (GCC) 13.4.0
sparse: v0.6.5-rc1
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260516/202605160625.YbQZbGyz-lkp@xxxxxxxxx/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
| Fixes: 8d0f79886273 ("drm/mediatek: Introduce HDMI/DDC v2 for MT8195/MT8188")
| Reported-by: kernel test robot <lkp@xxxxxxxxx>
| Closes: https://lore.kernel.org/oe-kbuild-all/202605160625.YbQZbGyz-lkp@xxxxxxxxx/
sparse warnings: (new ones prefixed by >>)
>> drivers/gpu/drm/mediatek/mtk_hdmi_ddc_v2.c:384:24: sparse: sparse: symbol 'mtk_hdmi_ddc_v2_driver' was not declared. Should it be static?
--
>> drivers/gpu/drm/mediatek/mtk_hdmi_v2.c:53:12: sparse: sparse: symbol 'mtk_hdmi_v2_clk_names' was not declared. Should it be static?
vim +/mtk_hdmi_ddc_v2_driver +384 drivers/gpu/drm/mediatek/mtk_hdmi_ddc_v2.c
383
> 384 struct platform_driver mtk_hdmi_ddc_v2_driver = {
385 .probe = mtk_hdmi_ddc_v2_probe,
386 .driver = {
387 .name = "mediatek-hdmi-ddc-v2",
388 .of_match_table = mtk_hdmi_ddc_v2_match,
389 },
390 };
391 module_platform_driver(mtk_hdmi_ddc_v2_driver);
392
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki