Skip to contentSkip to conversation

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?

DISCUSSION kernel test robot 1 participant 1 message Apr 13

lore
Share & tools
lore

kernel test robot

author build bot
#0 lore raw
tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   028ef9c96e96197026887c0f092424679298aae8
commit: 8d0f798862731c62b09e7138a9032964d70566c2 drm/mediatek: Introduce HDMI/DDC v2 for MT8195/MT8188
date:   5 months ago
config: powerpc64-randconfig-r131-20260413 (https://download.01.org/0day-ci/archive/20260413/[email protected]/config)
compiler: clang version 23.0.0git (https://github.com/llvm/llvm-project ae825cb8cea7f3ac8e5e4096f22713845cf5e501)
sparse: v0.6.5-rc1
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260413/[email protected]/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 <[email protected]>
| Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/

sparse warnings: (new ones prefixed by >>)

>> 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?
--
>> 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?

vim +/mtk_hdmi_v2_clk_names +53 drivers/gpu/drm/mediatek/mtk_hdmi_v2.c

    52	
  > 53	const char *const mtk_hdmi_v2_clk_names[MTK_HDMI_V2_CLK_COUNT] = {
    54		[MTK_HDMI_V2_CLK_HDMI_APB_SEL] = "bus",
    55		[MTK_HDMI_V2_CLK_HDCP_SEL] = "hdcp",
    56		[MTK_HDMI_V2_CLK_HDCP_24M_SEL] = "hdcp24m",
    57		[MTK_HDMI_V2_CLK_VPP_SPLIT_HDMI] = "hdmi-split",
    58	};
    59	
Signature · 2 lines
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki