Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Sibi Sankar and committed by
Bjorn Andersson
7ad18bb5 8f3d9f35

+1
+1
include/soc/qcom/cmd-db.h
··· 4 4 #ifndef __QCOM_COMMAND_DB_H__ 5 5 #define __QCOM_COMMAND_DB_H__ 6 6 7 + #include <linux/err.h> 7 8 8 9 enum cmd_db_hw_type { 9 10 CMD_DB_HW_INVALID = 0,