soc: qcom: cmd-db: Fix compilation error when CMD_DB is disabled
Subsystems (2)
PATCH 1/1 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’;
Signed-off-by Sibi Sankar <[email protected]>
--- include/soc/qcom/cmd-db.h | 1 + 1 file changed, 1 insertion(+)
include/soc/qcom/cmd-db.h +1 -0
@@ -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,
Signature · 2 lines
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project
Quoting Sibi Sankar (2020-02-27 04:56:15)
Quoted 8 lines
If
CONFIG_QCOM_COMMAND_DB=nthe 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 <[email protected]>---
Reviewed-by Stephen Boyd <[email protected]>