aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/include/soc
diff options
context:
space:
mode:
authorSibi Sankar <sibis@codeaurora.org>2020-02-27 18:26:15 +0530
committerBjorn Andersson <bjorn.andersson@linaro.org>2020-04-13 18:10:10 -0700
commit7ad18bb5c2c4bd50c8b83d375ee19be992022cf3 (patch)
tree9bf3ffa4939d9c7a9b4c4cb6b9a6248a068e0e48 /include/soc
parentLinux 5.7-rc1 (diff)
downloadwireguard-linux-7ad18bb5c2c4bd50c8b83d375ee19be992022cf3.tar.xz
wireguard-linux-7ad18bb5c2c4bd50c8b83d375ee19be992022cf3.zip
soc: qcom: cmd-db: Fix compilation error when CMD_DB is disabled
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’; Reviewed-by: Stephen Boyd <sboyd@kernel.org> Signed-off-by: Sibi Sankar <sibis@codeaurora.org> Link: https://lore.kernel.org/r/20200227125615.4727-1-sibis@codeaurora.org Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Diffstat (limited to 'include/soc')
-rw-r--r--include/soc/qcom/cmd-db.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/soc/qcom/cmd-db.h b/include/soc/qcom/cmd-db.h
index af9722223925..c8bb56e6852a 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,