Skip to contentSkip to conversation

irqchip/qcom-pdc: fix linking against QCOM_SCM firmware

PATCH Applied Arnd Bergmann 3 participants 3 messages Sep 15 – Oct 15 irqchip drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 irqchip/qcom-pdc: fix linking against QCOM_SCM firmware

From: Arnd Bergmann <[email protected]>

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")
---
 drivers/irqchip/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/irqchip/Kconfig +1 -1
index 89805bd0bd3e..039eaf086245 100644
@@ -526,7 +526,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
Signature · 1 line
2.53.0
Reviewed-by on v1 1/1
#1 lore raw
Quoted 9 lines · Arnd Bergmann

From: Arnd Bergmann <[email protected]>

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'

Quoted 7 lines

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")

Best regards,
Krzysztof

merge bot Applied
#2 lore raw

[tip: irq/drivers] irqchip/qcom-pdc: Fix linking against QCOM_SCM firmware

In reply to Arnd Bergmann
The following commit has been merged into the irq/drivers branch of tip:

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 <[email protected]>
AuthorDate:    Tue, 15 Sep 2026 21:59:27 +02:00
Committer:     Thomas Gleixner <[email protected]>
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")
---
 drivers/irqchip/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/irqchip/Kconfig +1 -1
index a8f8c42..06d5cbf 100644
@@ -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