soc: qcom: Fix compile error caused by uncorrectable definition of TRACE_INCLUDE_PATH
Subsystems (2)
PATCH 1/1 soc: qcom: Fix compile error caused by uncorrectable definition of TRACE_INCLUDE_PATH
From: Guanjun <[email protected]>
Compiler reports the error message when compiling the file drivers/soc/qcom/pmic_pdcharger_ulog.c:
- ./include/trace/define_trace.h:95:42: fatal error: ./pmic_pdcharger_ulog.h: No such file or directory 95 | #include TRACE_INCLUDE(TRACE_INCLUDE_FILE)
TRACE_INCLUDE_PATH shoule be relative to the path include/trace/define_trace.h, not the file including it. Fix it.
--- drivers/soc/qcom/pmic_pdcharger_ulog.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/soc/qcom/pmic_pdcharger_ulog.h +1 -1
@@ -28,7 +28,7 @@ TRACE_EVENT(pmic_pdcharger_ulog_msg,/* This part must be outside protection */ #undef TRACE_INCLUDE_PATH -#define TRACE_INCLUDE_PATH . +#define TRACE_INCLUDE_PATH ../../../drivers/soc/qcom/#undef TRACE_INCLUDE_FILE#define TRACE_INCLUDE_FILE pmic_pdcharger_ulog
Signature · 1 line
2.39.3
Quoted 11 lines · Guanjun
From: Guanjun <[email protected]>
Compiler reports the error message when compiling the file
drivers/soc/qcom/pmic_pdcharger_ulog.c:
-./include/trace/define_trace.h:95:42: fatal error: ./pmic_pdcharger_ulog.h: No such file or directory 95 | #includeTRACE_INCLUDE(TRACE_INCLUDE_FILE)
TRACE_INCLUDE_PATHshoule be relative to the pathinclude/trace/define_trace.h, not the file including it. Fix it.Fixes 086fdb48bc65d(soc: qcom: add ADSP PDCharger ULOG driver)Signed-off-by Guanjun <[email protected]>
For what it is worth I sent a similar patch (which handled this by using the CFLAG -I recommendation) over here about a week ago:
https://lore.kernel.org/linux-arm-msm/[email protected]/
I keep disabling this driver locally when developing (or picking up that patch) until something gets scooped up.
Quoted 21 lines
--- drivers/soc/qcom/pmic_pdcharger_ulog.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/soc/qcom/pmic_pdcharger_ulog.h +1
-1@@ -28,7 +28,7 @@ TRACE_EVENT(pmic_pdcharger_ulog_msg,/* This part must be outside protection */ #undef TRACE_INCLUDE_PATH -#define TRACE_INCLUDE_PATH . +#define TRACE_INCLUDE_PATH ../../../drivers/soc/qcom/#undef TRACE_INCLUDE_FILE#define TRACE_INCLUDE_FILE pmic_pdcharger_ulogSignature · 1 line
2.39.3
Quoted 14 lines
2023年12月12日 下午10:44,Andrew Halaney <[email protected]> 写道:
Quoted 9 lines · Guanjun
From: Guanjun <[email protected]>
Compiler reports the error message when compiling the file
drivers/soc/qcom/pmic_pdcharger_ulog.c:
-./include/trace/define_trace.h:95:42: fatal error: ./pmic_pdcharger_ulog.h: No such file or directory 95 | #includeTRACE_INCLUDE(TRACE_INCLUDE_FILE)
TRACE_INCLUDE_PATHshoule be relative to the pathinclude/trace/define_trace.h, not the file including it. Fix it.
Quoted 7 lines
Quoted 2 lines
Fixes 086fdb48bc65d(soc: qcom: add ADSP PDCharger ULOG driver)Signed-off-by Guanjun <[email protected]>For what it is worth I sent a similar patch (which handled this by using the CFLAG -I recommendation) over here about a week ago:
https://lore.kernel.org/linux-arm-msm/[email protected]/
Sorry. I didn’t check you have already sent the fixed patch. Please ignore this email
Quoted 25 lines
I keep disabling this driver locally when developing (or picking up that patch) until something gets scooped up.
Quoted 21 lines
---
drivers/soc/qcom/pmic_pdcharger_ulog.h| 2 +-1 file changed, 1 insertion(+), 1 deletion(-)drivers/soc/qcom/pmic_pdcharger_ulog.h +1
-1@@ -28,7 +28,7 @@ TRACE_EVENT(pmic_pdcharger_ulog_msg,/* This part must be outside protection */ #undef TRACE_INCLUDE_PATH -#define TRACE_INCLUDE_PATH . +#define TRACE_INCLUDE_PATH ../../../drivers/soc/qcom/#undef TRACE_INCLUDE_FILE#define TRACE_INCLUDE_FILE pmic_pdcharger_ulogSignature · 1 line
2.39.3