irqchip/qcom-pdc: fix linking against QCOM_SCM firmware
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.
--- drivers/irqchip/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/irqchip/Kconfig +1 -1
@@ -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
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 toqcom_scm_is_available' qcom-pdc.c:(.text+0x18ce): undefined reference toqcom_scm_io_writel'
Quoted 7 lines
As
QCOM_SCMcan already be enabled for compile testing on non-qualcomm machines, but is always enabled on Qualcomm Arm kernels, use that as theKconfigdependency 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 <[email protected]>
Best regards,
Krzysztof
[tip: irq/drivers] irqchip/qcom-pdc: Fix linking against QCOM_SCM firmware
In reply to Arnd BergmannThe 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.
--- drivers/irqchip/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/irqchip/Kconfig +1 -1
@@ -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