* [PATCH] soc: qcom: cmd-db: Fix compilation error when CMD_DB is disabled
@ 2020-02-27 12:56 Sibi Sankar
2020-02-27 21:53 ` Stephen Boyd
0 siblings, 1 reply; 2+ messages in thread
From: Sibi Sankar @ 2020-02-27 12:56 UTC (permalink / raw)
To: bjorn.andersson, agross, arnd
Cc: georgi.djakov, linux-kernel, devicetree, linux-arm-msm, sboyd,
Sibi Sankar
If CONFIG_QCOM_COMMAND_DB=n the following compilation errors will be
seen. Fix this by including the appropriate linux headers.
./include/soc/qcom/cmd-db.h: In function ‘cmd_db_read_aux_data’:
./include/soc/qcom/cmd-db.h: error: implicit declaration of function ‘ERR_PTR’;
Signed-off-by: Sibi Sankar <sibis@codeaurora.org>
---
include/soc/qcom/cmd-db.h | 1 +
1 file changed, 1 insertion(+)
diff --git a/include/soc/qcom/cmd-db.h b/include/soc/qcom/cmd-db.h
index af97222239251..c8bb56e6852a8 100644
--- a/include/soc/qcom/cmd-db.h
+++ b/include/soc/qcom/cmd-db.h
@@ -4,6 +4,7 @@
#ifndef __QCOM_COMMAND_DB_H__
#define __QCOM_COMMAND_DB_H__
+#include <linux/err.h>
enum cmd_db_hw_type {
CMD_DB_HW_INVALID = 0,
--
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum,
a Linux Foundation Collaborative Project
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] soc: qcom: cmd-db: Fix compilation error when CMD_DB is disabled
2020-02-27 12:56 [PATCH] soc: qcom: cmd-db: Fix compilation error when CMD_DB is disabled Sibi Sankar
@ 2020-02-27 21:53 ` Stephen Boyd
0 siblings, 0 replies; 2+ messages in thread
From: Stephen Boyd @ 2020-02-27 21:53 UTC (permalink / raw)
To: Sibi Sankar, agross, arnd, bjorn.andersson
Cc: georgi.djakov, linux-kernel, devicetree, linux-arm-msm, Sibi Sankar
Quoting Sibi Sankar (2020-02-27 04:56:15)
> If CONFIG_QCOM_COMMAND_DB=n the following compilation errors will be
> seen. Fix this by including the appropriate linux headers.
>
> ./include/soc/qcom/cmd-db.h: In function \u2018cmd_db_read_aux_data\u2019:
> ./include/soc/qcom/cmd-db.h: error: implicit declaration of function \u2018ERR_PTR\u2019;
>
> Signed-off-by: Sibi Sankar <sibis@codeaurora.org>
> ---
Reviewed-by: Stephen Boyd <sboyd@kernel.org>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2020-02-27 21:53 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-02-27 12:56 [PATCH] soc: qcom: cmd-db: Fix compilation error when CMD_DB is disabled Sibi Sankar
2020-02-27 21:53 ` Stephen Boyd
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).