Skip to content

Commit 7ad18bb

Browse files
Sibi Sankarandersson
authored andcommitted
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>
1 parent 8f3d9f3 commit 7ad18bb

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎include/soc/qcom/cmd-db.h‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
#ifndef __QCOM_COMMAND_DB_H__
55
#define __QCOM_COMMAND_DB_H__
66

7+
#include <linux/err.h>
78

89
enum cmd_db_hw_type {
910
CMD_DB_HW_INVALID = 0,

0 commit comments

Comments
 (0)