[tip: irq/drivers] irqchip/qcom-pdc: Fix linking against QCOM_SCM firmware
From: tip-bot2 for Arnd Bergmann
Date: Thu Oct 15 2026 - 06:01:44 EST
The following commit has been merged into the irq/drivers branch of tip:
Commit-ID: 8e6b8708f925b015e2af4d77757c2fbee7da6ec8
Gitweb: https://git.kernel.org/tip/8e6b8708f925b015e2af4d77757c2fbee7da6ec8
Author: Arnd Bergmann <arnd@xxxxxxxx>
AuthorDate: Tue, 15 Sep 2026 21:59:27 +02:00
Committer: Thomas Gleixner <tglx@xxxxxxxxxx>
CommitterDate: Thu, 15 Oct 2026 11:50:47 +02:00
irqchip/qcom-pdc: Fix linking against QCOM_SCM firmware
Build testing with SCM disabled or in a loadable module fails
with a link error:
s390-linux-ld: drivers/irqchip/qcom-pdc.o: in function `qcom_pdc_probe':
qcom-pdc.c:(.text+0x18b8): undefined reference to `qcom_scm_is_available'
qcom-pdc.c:(.text+0x18ce): undefined reference to `qcom_scm_io_writel'
As QCOM_SCM can already be enabled for compile testing on non-qualcomm
machines, but is always enabled on Qualcomm Arm kernels, use that
as the Kconfig dependency and remove the ||COMPILE_TEST check.
Fixes: 1b852de05f74 ("irqchip/qcom: Enable compile testing for QCOM_PDC and QCOM_MPM")
Fixes: ad01c2b2f291 ("irqchip/qcom-pdc: Configure PDC to pass through mode")
Signed-off-by: Arnd Bergmann <arnd@xxxxxxxx>
Signed-off-by: Thomas Gleixner <tglx@xxxxxxxxxx>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@xxxxxxxxxxxxxxxx>
Link: https://patch.msgid.link/20260915195948.3521662-1-arnd@xxxxxxxxxx
---
drivers/irqchip/Kconfig | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/irqchip/Kconfig b/drivers/irqchip/Kconfig
index a8f8c42..06d5cbf 100644
--- a/drivers/irqchip/Kconfig
+++ b/drivers/irqchip/Kconfig
@@ -522,7 +522,7 @@ config GOLDFISH_PIC
config QCOM_PDC
tristate "Qualcomm PDC"
- depends on ARCH_QCOM || COMPILE_TEST
+ depends on QCOM_SCM
select IRQ_DOMAIN_HIERARCHY
default ARCH_QCOM
help