* [PATCH] irqchip/mediatek: Add OF and HAS_IOMEM dependencies for MTK_IRQ
@ 2026-11-25 18:06 Zyta Szpak
2026-12-01 20:15 ` [tip: irq/drivers] " tip-bot2 for Zyta Szpak
0 siblings, 1 reply; 2+ messages in thread
From: Zyta Szpak @ 2026-11-25 18:06 UTC (permalink / raw)
To: Thomas Gleixner, Radu Rendec
Cc: Matthias Brugger, AngeloGioacchino Del Regno, linux-kernel,
linux-arm-kernel, linux-mediatek, oe-kbuild-all, Zyta Szpak,
kernel test robot
Enabling COMPILE_TEST for CONFIG_MTK_IRQ allows building irq-mtk-cirq.c
without CONFIG_OF enabled, which causes of_match_node() to expand to
NULL and triggers a W=1 compiler warning:
drivers/irqchip/irq-mtk-cirq.c:292:34: warning: unused variable 'mtk_cirq_of_match' [-Wunused-const-variable]
Both irq-mtk-sysirq and irq-mtk-cirq are Device Tree-only MMIO drivers
using IRQCHIP_DECLARE() and of_iomap(), so building them without OF or
HAS_IOMEM serves no purpose and can fail on !HAS_IOMEM configurations.
Add explicit dependencies on OF and HAS_IOMEM to CONFIG_MTK_IRQ.
Fixes: 702ae15488ce ("irqchip/mediatek: Add Kconfig option for MediaTek SYSIRQ and CIRQ")
Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/20261117144350.wOuBa9ZW-lkp@intel.com/
Signed-off-by: Zyta Szpak <zyta@google.com>
---
drivers/irqchip/Kconfig | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/irqchip/Kconfig b/drivers/irqchip/Kconfig
index 90daedb7554a..9e6658289ae0 100644
--- a/drivers/irqchip/Kconfig
+++ b/drivers/irqchip/Kconfig
@@ -795,6 +795,7 @@ config MST_IRQ
config MTK_IRQ
bool "MediaTek Interrupt Controller"
+ depends on OF && HAS_IOMEM
depends on ARCH_MEDIATEK || COMPILE_TEST
default ARCH_MEDIATEK
select IRQ_DOMAIN
base-commit: aab02e49f0b54a0837e58c67651c4abdad1a3208
--
2.56.1.839.g22a8290db9-goog
^ permalink raw reply [flat|nested] 2+ messages in thread
* [tip: irq/drivers] irqchip/mediatek: Add OF and HAS_IOMEM dependencies for MTK_IRQ
2026-11-25 18:06 [PATCH] irqchip/mediatek: Add OF and HAS_IOMEM dependencies for MTK_IRQ Zyta Szpak
@ 2026-12-01 20:15 ` tip-bot2 for Zyta Szpak
0 siblings, 0 replies; 2+ messages in thread
From: tip-bot2 for Zyta Szpak @ 2026-12-01 20:15 UTC (permalink / raw)
To: linux-tip-commits
Cc: kernel test robot, Zyta Szpak, Thomas Gleixner, x86, linux-kernel
The following commit has been merged into the irq/drivers branch of tip:
Commit-ID: bd915219396ae2855b11b9ebafd408a2d6fc9711
Gitweb: https://git.kernel.org/tip/bd915219396ae2855b11b9ebafd408a2d6fc9711
Author: Zyta Szpak <zyta@google.com>
AuthorDate: Wed, 25 Nov 2026 18:06:20
Committer: Thomas Gleixner <tglx@kernel.org>
CommitterDate: Tue, 01 Dec 2026 21:12:22 +01:00
irqchip/mediatek: Add OF and HAS_IOMEM dependencies for MTK_IRQ
Enabling COMPILE_TEST for CONFIG_MTK_IRQ allows building irq-mtk-cirq.c
without CONFIG_OF enabled, which causes of_match_node() to expand to
NULL and triggers a W=1 compiler warning:
drivers/irqchip/irq-mtk-cirq.c:292:34: warning: unused variable 'mtk_cirq_of_match' [-Wunused-const-variable]
Both irq-mtk-sysirq and irq-mtk-cirq are Device Tree-only MMIO drivers
using IRQCHIP_DECLARE() and of_iomap(), so building them without OF or
HAS_IOMEM serves no purpose and can fail on !HAS_IOMEM configurations.
Add explicit dependencies on OF and HAS_IOMEM to CONFIG_MTK_IRQ.
Fixes: 702ae15488ce ("irqchip/mediatek: Add Kconfig option for MediaTek SYSIRQ and CIRQ")
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Zyta Szpak <zyta@google.com>
Signed-off-by: Thomas Gleixner <tglx@kernel.org>
Link: https://patch.msgid.link/20261125180620.578175-1-zyta@google.com
Closes: https://lore.kernel.org/oe-kbuild-all/20261117144350.wOuBa9ZW-lkp@intel.com/
---
drivers/irqchip/Kconfig | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/irqchip/Kconfig b/drivers/irqchip/Kconfig
index aafd2e6..f616381 100644
--- a/drivers/irqchip/Kconfig
+++ b/drivers/irqchip/Kconfig
@@ -796,6 +796,7 @@ config MST_IRQ
config MTK_IRQ
bool "MediaTek Interrupt Controller"
+ depends on OF && HAS_IOMEM
depends on ARCH_MEDIATEK || COMPILE_TEST
default ARCH_MEDIATEK
select IRQ_DOMAIN
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-12-01 20:15 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-25 18:06 [PATCH] irqchip/mediatek: Add OF and HAS_IOMEM dependencies for MTK_IRQ Zyta Szpak
2026-12-01 20:15 ` [tip: irq/drivers] " tip-bot2 for Zyta Szpak
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®