qcom: qcs404: remove COMPILE_TEST from CONFIG_INTERCONNECT_QCOM_QCS404
Subsystems (3)
PATCH 1/1 qcom: qcs404: remove COMPILE_TEST from CONFIG_INTERCONNECT_QCOM_QCS404
There is one compilation error when CONFIG_INTERCONNECT_QCOM_QCS404=y and CONFIG_INTERCONNECT_QCOM_SMD_RPM=y, as well as CONFIG_COMPILE_TEST=y, but CONFIG_QCOM_SMD_RPM is not set, logs as below:
drivers/interconnect/qcom/smd-rpm.o: In function `qcom_icc_rpm_smd_send':
smd-rpm.c:(.text+0xe4): undefined reference to `qcom_rpm_smd_write' Makefile:1071: recipe for target 'vmlinux' failed
make: *** [vmlinux] Error 1
This is becauseINTERCONNECT_QCOM_QCS404 depends on QCOM_SMD_RPM || COMPILE_TEST. Here CONFIG_COMPILE_TEST=y, so CONFIG_INTERCONNECT_QCOM_SMD_RPM is selected. If CONFIG_QCOM_SMD_RPM is not set, then qcom_rpm_smd_write() is not defined, and compilation error happen. Fix this by removing COMPILE_TEST from CONFIG_INTERCONNECT_QCOM_QCS404.
--- drivers/interconnect/qcom/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/interconnect/qcom/Kconfig +1 -1
@@ -8,7 +8,7 @@ config INTERCONNECT_QCOM config INTERCONNECT_QCOM_QCS404 tristate "Qualcomm QCS404 interconnect driver" depends on INTERCONNECT_QCOM - depends on QCOM_SMD_RPM || COMPILE_TEST + depends on QCOM_SMD_RPM select INTERCONNECT_QCOM_SMD_RPM help This is a driver for the Qualcomm Network-on-Chip on qcs404-based
Signature · 1 line
2.7.4
Quoting Mao Wenan (2019-08-15 00:48:48)
Quoted 9 lines
There is one compilation error when
CONFIG_INTERCONNECT_QCOM_QCS404=yandCONFIG_INTERCONNECT_QCOM_SMD_RPM=y, as well asCONFIG_COMPILE_TEST=y, butCONFIG_QCOM_SMD_RPMis not set, logs as below:
drivers/interconnect/qcom/smd-rpm.o: In function `qcom_icc_rpm_smd_send':
smd-rpm.c:(.text+0xe4): undefined reference to `qcom_rpm_smd_write' Makefile:1071: recipe for target 'vmlinux' failed
make: *** [vmlinux] Error 1
Quoted 6 lines
This is because
INTERCONNECT_QCOM_QCS404depends onQCOM_SMD_RPM||COMPILE_TEST. HereCONFIG_COMPILE_TEST=y, soCONFIG_INTERCONNECT_QCOM_SMD_RPMis selected. IfCONFIG_QCOM_SMD_RPMis not set, thenqcom_rpm_smd_write()is not defined, and compilation error happen. Fix this by removingCOMPILE_TESTfromCONFIG_INTERCONNECT_QCOM_QCS404.
Can you fix the actual problem with compile testing this driver vs. just removing the possibility to compile test. Otherwise it gives up on the spirit of the idea of COMPILE_TEST.
Quoted 17 lines · Stephen Boyd
Quoting Mao Wenan (2019-08-15 00:48:48)
Quoted 9 lines
There is one compilation error when
CONFIG_INTERCONNECT_QCOM_QCS404=yandCONFIG_INTERCONNECT_QCOM_SMD_RPM=y, as well asCONFIG_COMPILE_TEST=y, butCONFIG_QCOM_SMD_RPMis not set, logs as below:
drivers/interconnect/qcom/smd-rpm.o: In function `qcom_icc_rpm_smd_send':
smd-rpm.c:(.text+0xe4): undefined reference to `qcom_rpm_smd_write' Makefile:1071: recipe for target 'vmlinux' failed
make: *** [vmlinux] Error 1Quoted 6 lines
This is because
INTERCONNECT_QCOM_QCS404depends onQCOM_SMD_RPM||COMPILE_TEST. HereCONFIG_COMPILE_TEST=y, soCONFIG_INTERCONNECT_QCOM_SMD_RPMis selected. IfCONFIG_QCOM_SMD_RPMis not set, thenqcom_rpm_smd_write()is not defined, and compilation error happen. Fix this by removingCOMPILE_TESTfromCONFIG_INTERCONNECT_QCOM_QCS404.
Quoted 3 lines
Can you fix the actual problem with compile testing this driver vs. just removing the possibility to compile test. Otherwise it gives up on the spirit of the idea of
COMPILE_TEST.
yes, I have already tried to move COMPILE_TEST to INTERCONNECT_QCOM,
config INTERCONNECT_QCOM
bool "Qualcomm Network-on-Chip interconnect drivers"
- depends on ARCH_QCOM
+ depends on ARCH_QCOM || COMPILE_TEST
help
Support for Qualcomm's Network-on-Chip interconnect hardware.
Quoted 4 lines
.
PATCH v2 1/1 qcom: qcs404: move COMPILE_TEST to INTERCONNECT_QCOM
In reply to Stephen BoydThere is one compilation error when CONFIG_INTERCONNECT_QCOM_QCS404=y and CONFIG_INTERCONNECT_QCOM_SMD_RPM=y, as well as CONFIG_COMPILE_TEST=y, but CONFIG_QCOM_SMD_RPM is not set, logs as below:
drivers/interconnect/qcom/smd-rpm.o: In function `qcom_icc_rpm_smd_send':
smd-rpm.c:(.text+0xe4): undefined reference to `qcom_rpm_smd_write' Makefile:1071: recipe for target 'vmlinux' failed
make: *** [vmlinux] Error 1
This is becauseINTERCONNECT_QCOM_QCS404 depends on QCOM_SMD_RPM || COMPILE_TEST. Here CONFIG_COMPILE_TEST=y, so CONFIG_INTERCONNECT_QCOM_SMD_RPM is selected. If CONFIG_QCOM_SMD_RPM is not set, then qcom_rpm_smd_write() is not defined, and compilation error happen. Fix this by moving COMPILE_TEST from CONFIG_INTERCONNECT_QCOM_QCS404 to CONFIG_INTERCONNECT_QCOM, qcom's interconnect drivers can be compiled on different platform.
---
v2: change subject of patch, and move COMPILE_TEST to INTERCONNECT_QCOM.
drivers/interconnect/qcom/Kconfig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/interconnect/qcom/Kconfig +2 -2
@@ -1,14 +1,14 @@ # SPDX-License-Identifier: GPL-2.0-only config INTERCONNECT_QCOM bool "Qualcomm Network-on-Chip interconnect drivers" - depends on ARCH_QCOM + depends on ARCH_QCOM || COMPILE_TEST help Support for Qualcomm's Network-on-Chip interconnect hardware. config INTERCONNECT_QCOM_QCS404 tristate "Qualcomm QCS404 interconnect driver" depends on INTERCONNECT_QCOM - depends on QCOM_SMD_RPM || COMPILE_TEST + depends on QCOM_SMD_RPM select INTERCONNECT_QCOM_SMD_RPM help This is a driver for the Qualcomm Network-on-Chip on qcs404-based
Signature · 1 line
2.7.4