mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Zyta Szpak <zyta@google.com>
To: Thomas Gleixner <tglx@kernel.org>, Radu Rendec <radu@rendec.net>
Cc: Matthias Brugger <matthias.bgg@gmail.com>,
	 AngeloGioacchino Del Regno
	<angelogioacchino.delregno@collabora.com>,
	linux-kernel@vger.kernel.org,
	 linux-arm-kernel@lists.infradead.org,
	linux-mediatek@lists.infradead.org,
	 oe-kbuild-all@lists.linux.dev, Zyta Szpak <zyta@google.com>,
	 kernel test robot <lkp@intel.com>
Subject: [PATCH] irqchip/mediatek: Add OF and HAS_IOMEM dependencies for MTK_IRQ
Date: Wed, 25 Nov 2026 18:06:20 +0000	[thread overview]
Message-ID: <20261125180620.578175-1-zyta@google.com> (raw)

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


                 reply	other threads:[~2026-11-25 18:06 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20261125180620.578175-1-zyta@google.com \
    --to=zyta@google.com \
    --cc=angelogioacchino.delregno@collabora.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mediatek@lists.infradead.org \
    --cc=lkp@intel.com \
    --cc=matthias.bgg@gmail.com \
    --cc=oe-kbuild-all@lists.linux.dev \
    --cc=radu@rendec.net \
    --cc=tglx@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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®