[tip:irq/drivers 20/24] drivers/irqchip/irq-mtk-cirq.c:292:34: warning: unused variable 'mtk_cirq_of_match'
From: kernel test robot
Date: Tue Nov 17 2026 - 08:53:15 EST
Hi Zyta,
First bad commit (maybe != root cause):
tree: https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git irq/drivers
head: aab02e49f0b54a0837e58c67651c4abdad1a3208
commit: 702ae15488ce96d9818deee812d9fc271316fa6e [20/24] irqchip/mediatek: Add Kconfig option for MediaTek SYSIRQ and CIRQ
config: hexagon-randconfig-r2111-20261117 (https://download.01.org/0day-ci/archive/20261117/20261117144350.wOuBa9ZW-lkp@xxxxxxxxx/config)
compiler: clang version 24.0.0git (https://github.com/llvm/llvm-project c7014922f5829426952a38d079220c21b0a8ebe8)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20261117/20261117144350.wOuBa9ZW-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
| Reported-by: kernel test robot <lkp@xxxxxxxxx>
| Closes: https://lore.kernel.org/oe-kbuild-all/20261117144350.wOuBa9ZW-lkp@xxxxxxxxx/
All warnings (new ones prefixed by >>):
>> drivers/irqchip/irq-mtk-cirq.c:292:34: warning: unused variable 'mtk_cirq_of_match' [-Wunused-const-variable]
292 | static const struct of_device_id mtk_cirq_of_match[] = {
| ^~~~~~~~~~~~~~~~~
1 warning generated.
vim +/mtk_cirq_of_match +292 drivers/irqchip/irq-mtk-cirq.c
9dbbbd33aafaf1f Youlin Pei 2017-04-07 291
45ac01959edcecf AngeloGioacchino Del Regno 2022-11-28 @292 static const struct of_device_id mtk_cirq_of_match[] = {
45ac01959edcecf AngeloGioacchino Del Regno 2022-11-28 293 { .compatible = "mediatek,mt2701-cirq", .data = &mtk_cirq_regoffs_v1 },
45ac01959edcecf AngeloGioacchino Del Regno 2022-11-28 294 { .compatible = "mediatek,mt8135-cirq", .data = &mtk_cirq_regoffs_v1 },
45ac01959edcecf AngeloGioacchino Del Regno 2022-11-28 295 { .compatible = "mediatek,mt8173-cirq", .data = &mtk_cirq_regoffs_v1 },
5c4e0aac0b2a271 AngeloGioacchino Del Regno 2022-11-28 296 { .compatible = "mediatek,mt8192-cirq", .data = &mtk_cirq_regoffs_v2 },
45ac01959edcecf AngeloGioacchino Del Regno 2022-11-28 297 { /* sentinel */ }
45ac01959edcecf AngeloGioacchino Del Regno 2022-11-28 298 };
45ac01959edcecf AngeloGioacchino Del Regno 2022-11-28 299
:::::: The code at line 292 was first introduced by commit
:::::: 45ac01959edcecfa5d6652c2397d3866e55b0da8 irqchip/irq-mtk-cirq: Move register offsets to const array
:::::: TO: AngeloGioacchino Del Regno <angelogioacchino.delregno@xxxxxxxxxxxxx>
:::::: CC: Marc Zyngier <maz@xxxxxxxxxx>
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki