Skip to contentSkip to conversation

irqchip/qcom-pdc: fix builtin vs. module build error

PATCH In review Randy Dunlap 3 participants 4 messages Oct 6 – Oct 8

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 irqchip/qcom-pdc: fix builtin vs. module build error

When CONFIG_QCOM_SCM=m and CONFIG_QCOM_PDC=y, the build fails with
aarch64-linux-ld: drivers/irqchip/qcom-pdc.o: in function `qcom_pdc_probe':
qcom-pdc.c:(.text+0x1060): undefined reference to `qcom_scm_is_available'
aarch64-linux-ld: qcom-pdc.c:(.text+0x1094): undefined reference to `qcom_scm_io_writel'

[ARCH_QCOM=y, COMPILE_TEST=y]

---
Cc: Maulik Shah <[email protected]>
Cc: Krzysztof Kozlowski <[email protected]>
Cc: Thomas Gleixner <[email protected]>
Cc: Radu Rendec <[email protected]>
Cc: Bjorn Andersson <[email protected]>
Cc: Konrad Dybcio <[email protected]>
Cc: Abel Vesa <[email protected]>
Cc: [email protected]

 drivers/irqchip/Kconfig |    1 +
 1 file changed, 1 insertion(+)
drivers/irqchip/Kconfig +1 -0
@@ -523,6 +523,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
Reviewed-by on v1 1/1
#1 lore raw
Quoted 6 lines · Randy Dunlap

When CONFIG_QCOM_SCM=m and CONFIG_QCOM_PDC=y, the build fails with
aarch64-linux-ld: drivers/irqchip/qcom-pdc.o: in function `qcom_pdc_probe':
qcom-pdc.c:(.text+0x1060): undefined reference to `qcom_scm_is_available'
aarch64-linux-ld: qcom-pdc.c:(.text+0x1094): undefined reference to `qcom_scm_io_writel'

[ARCH_QCOM=y, COMPILE_TEST=y]

This should have fixes tag.

Fixes ad01c2b2f291 ("irqchip/qcom-pdc: Configure PDC to pass through mode")

with the tag added,

Thanks,
Maulik

#2 lore raw
In reply to Randy Dunlap
Quoted 7 lines · Randy Dunlap

When CONFIG_QCOM_SCM=m and CONFIG_QCOM_PDC=y, the build fails with
aarch64-linux-ld: drivers/irqchip/qcom-pdc.o: in function `qcom_pdc_probe':
qcom-pdc.c:(.text+0x1060): undefined reference to `qcom_scm_is_available'
aarch64-linux-ld: qcom-pdc.c:(.text+0x1094): undefined reference to `qcom_scm_io_writel'

[ARCH_QCOM=y, COMPILE_TEST=y]

Posted 3 weeks ago by Arnd already:
https://lore.kernel.org/all/[email protected]/

Got also review and that patch should be picked up.

Best regards,
Krzysztof

#3 lore raw
Quoted 6 lines · Krzysztof Kozlowski
Quoted 5 lines · Randy Dunlap

When CONFIG_QCOM_SCM=m and CONFIG_QCOM_PDC=y, the build fails with
aarch64-linux-ld: drivers/irqchip/qcom-pdc.o: in function `qcom_pdc_probe':
qcom-pdc.c:(.text+0x1060): undefined reference to `qcom_scm_is_available'
aarch64-linux-ld: qcom-pdc.c:(.text+0x1094): undefined reference to `qcom_scm_io_writel'

Quoted 8 lines
Quoted 2 lines

[ARCH_QCOM=y, COMPILE_TEST=y]

Posted 3 weeks ago by Arnd already:
https://lore.kernel.org/all/[email protected]/

Got also review and that patch should be picked up.

I agree. I guess that there has been a bit of travel time in the last 3 weeks. :)

Signature · 1 line
~Randy