From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 60B90606A33A for ; Wed, 25 Nov 2026 18:06:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=bombadil.20210309 header.b=pR0wc24E; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.a=rsa-sha256 header.s=20260707 header.b=G3xjO6Qt DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Type:Cc:To:From: Subject:Message-ID:Mime-Version:Date:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Unsubscribe-Post:List-Owner; bh=kB0v6EVehb/RoxPUQoMs0TMRRrXGkjijuKU6iXWhWvg=; b=pR0wc24El5CLXD5HFDo3v/5yiy +ZKSULxve8wiuztw7qesHuvLITz/yjjOpXK+l5ZE3iPSGXu0Gmxjj96KkIcXErRnWZyhJUiEijSaW lnmFpi/iaV1s8LBnoDxbm6XkTUn00W5K1H/OetHvu0pbBe+x8RYHg3+kCBxx5R3ywYYTwwwM8cs/Z uGoTuyO0gGSwMw5j0Jvncb00zAQUkNVDIxp6IVpYalocFfxnJ48uGBk1P5HMFPyo8iEkYWt7Ho0VE 4Lc5/t9vFkLSjahanwiQ3LJ1KilDD6Os3hgH8htIsi5khO5uJJoEtT2Fo9fgctETBx6sTSJMbkvaW N7T2rHug==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.100.1 #2 (Red Hat Linux)) id 1xWHOA-0000000AwqG-1HVe; Wed, 25 Nov 2026 18:06:38 +0000 Received: from mail-ej1-x646.google.com ([2a00:1450:4864:20::646]) by bombadil.infradead.org with esmtps (Exim 4.100.1 #2 (Red Hat Linux)) id 1xWHO1-0000000Awnu-2dZL for linux-arm-kernel@lists.infradead.org; Wed, 25 Nov 2026 18:06:32 +0000 Received: by mail-ej1-x646.google.com with SMTP id a640c23a62f3a-c429d9d05f0so563354566b.1 for ; Wed, 25 Nov 2026 10:06:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20260707; t=1795629987; x=1796234787; darn=lists.infradead.org; h=content-type:cc:to:from:subject:message-id:mime-version:date:from :to:cc:subject:date:message-id:reply-to:content-type; bh=kB0v6EVehb/RoxPUQoMs0TMRRrXGkjijuKU6iXWhWvg=; b=G3xjO6QtsCEliF4zlBvgWchgyltmKLU5F0qef7g+Lb4U9PA00XWps7pV9SBTk3PPko FC+u3wBXWkckd7C1ff/NShIco2aD7eKfxy9V4CvVBpQcm2EPf4TEZuOVLg66kDOdpHr0 lQKmCbXnS/UMmdYSgNEof0wjSoG0SPRIJjpbzt1Nj/KOPI0DYMKyvGqK3g7ND/s1i+SS NWBkHd7aWRFd34jhIkqLBCmvMmTL+F7B5ZlvLyaN3wK0FU0H/0ycP9RjqmnJrjntNPWH iS5N1IlqRj2anCI5NcVWyeVAMWIA9blfnKnRqFqYMS9a1lptMemoVyC8cTNIE08lh2Gp k5+A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1795629987; x=1796234787; h=content-type:cc:to:from:subject:message-id:mime-version:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=kB0v6EVehb/RoxPUQoMs0TMRRrXGkjijuKU6iXWhWvg=; b=bLEItG9OrFSnIizqd4UAGNkJootE37ZA1x+yvDnU4RP6scz3/Zvqc5SHWne7NVUsAI 9v6+06h4p+lMk/ywVyqJyw2H0Hl7YL58C02aZl4+jsw+kw4WDBTrkUaQ3qScnrgny10F FY6VOoVNitD07qh+UPw8wM4ibxu08qE5VW9HACtMb3VNBM126fkrn+Tu+mOn5WX7JrZF /63vq7GwAe8yxOW4am4NvO+SzdHP+ZmDrhwOHxjfqjELUApskU2PRPi+n1THadpam9pA 9YzDfpQ4s8UF702LxVjB0N/5q35/y/NDj5u9Gp9qu8xGne2VR6wHkKKQTww08WieStn4 IKWg== X-Forwarded-Encrypted: i=1; AL+hErHfuQ1cyiD+e/oku4VMGBdxrRp2NqbmlmBh6akEK3jupA2ZxUVH7ynn8na8E2ag9mbHeF/XvRKjGwaS53iMcDYU@lists.infradead.org X-Gm-Message-State: APuU4Z+c08UkHrE9IG3Gds0OAq6/BDeikaKzaAjXjbaI2DZ00+K8EGfH xUDg3RarK3RjLGChFtJ7UQFq/oV9K2nzPEdLnPg9U4lf9AT6Ifx+XYqMkEJ7JQWCnmGtqsshKQ= = X-Received: from ejc14-n2.prod.google.com ([2002:a05:6938:a00e:20b0:c50:6127:2777]) (user=zyta job=prod-delivery.src-stubby-dispatcher) by 2002:a17:907:2da8:b0:c51:9abe:f3b4 with SMTP id a640c23a62f3a-c519abef596mr491882666b.6.1795629986942; Wed, 25 Nov 2026 10:06:26 -0800 (PST) Date: Wed, 25 Nov 2026 18:06:20 +0000 X-Archived-By: Mime-Version: 1.0 X-Mailer: git-send-email 2.56.1.839.g22a8290db9-goog Message-ID: <20261125180620.578175-1-zyta@google.com> Subject: [PATCH] irqchip/mediatek: Add OF and HAS_IOMEM dependencies for MTK_IRQ From: Zyta Szpak To: Thomas Gleixner , Radu Rendec Cc: Matthias Brugger , AngeloGioacchino Del Regno , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, oe-kbuild-all@lists.linux.dev, Zyta Szpak , kernel test robot Content-Type: text/plain; charset="UTF-8" X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.9.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20261125_100629_707254_B67E7AF3 X-CRM114-Status: GOOD ( 10.22 ) X-Spam-Score: -9.5 (---------) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" X-Spam-Status: No, score=-26.4 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIMWL_WL_MED,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT, USER_IN_DEF_DKIM_WL autolearn=unavailable autolearn_force=no version=4.0.1 X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on aws-us-west-2-korg-listserv-alma10-1 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 Closes: https://lore.kernel.org/oe-kbuild-all/20261117144350.wOuBa9ZW-lkp@intel.com/ Signed-off-by: Zyta Szpak --- 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