diff options
author | Jonathan Marek <jonathan@marek.ca> | 2018-11-21 21:32:25 -0500 |
---|---|---|
committer | Andy Gross <andy.gross@linaro.org> | 2018-12-05 16:44:05 -0600 |
commit | 16ad9501b1f2edebe24f8cf3c09da0695871986b (patch) | |
tree | d8eca8ac6f8f9ae7af187be564ab75a4badb549a /include | |
parent | b601f73130a375c912d9f2ec93c5f3cea5d6a3da (diff) | |
download | linux-stable-16ad9501b1f2edebe24f8cf3c09da0695871986b.tar.gz linux-stable-16ad9501b1f2edebe24f8cf3c09da0695871986b.tar.bz2 linux-stable-16ad9501b1f2edebe24f8cf3c09da0695871986b.zip |
firmware: qcom: scm: fix compilation error when disabled
This fixes the case when CONFIG_QCOM_SCM is not enabled, and linux/errno.h
has not been included previously.
Signed-off-by: Jonathan Marek <jonathan@marek.ca>
Reviewed-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Signed-off-by: Andy Gross <andy.gross@linaro.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/qcom_scm.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/qcom_scm.h b/include/linux/qcom_scm.h index 06996ad4f2bc..1637385bcc17 100644 --- a/include/linux/qcom_scm.h +++ b/include/linux/qcom_scm.h @@ -67,6 +67,9 @@ extern int qcom_scm_iommu_secure_ptbl_init(u64 addr, u32 size, u32 spare); extern int qcom_scm_io_readl(phys_addr_t addr, unsigned int *val); extern int qcom_scm_io_writel(phys_addr_t addr, unsigned int val); #else + +#include <linux/errno.h> + static inline int qcom_scm_set_cold_boot_addr(void *entry, const cpumask_t *cpus) { |