firmware: qcom: scm: fix compilation error when disabled
PATCH 1/1 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 <[email protected]>
---
drm/msm includes qcom_scm.h, but can be used with non-qcom hw (IMX5)
include/linux/qcom_scm.h | 3 +++ 1 file changed, 3 insertions(+)
include/linux/qcom_scm.h +3 -0
@@ -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) {
Signature · 1 line
2.17.1
+ linux-arm-msm
Quoted 4 lines · Jonathan Marek
This fixes the case when
CONFIG_QCOM_SCMis not enabled, andlinux/errno.hhas not been included previously.Signed-off-by Jonathan Marek <[email protected]>
Reviewed-by Bjorn Andersson <[email protected]>
Regards,
Bjorn
Quoted 23 lines
---
drm/msm includesqcom_scm.h, but can be used with non-qcom hw (IMX5)include/linux/qcom_scm.h | 3 +++ 1 file changed, 3 insertions(+)include/linux/qcom_scm.h +3
-0@@ -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) {Signature · 1 line
2.17.1
Quoted 10 lines · Bjorn Andersson
+ linux-arm-msm
Quoted 4 lines · Jonathan Marek
This fixes the case when
CONFIG_QCOM_SCMis not enabled, andlinux/errno.hhas not been included previously.Signed-off-by Jonathan Marek <[email protected]>Reviewed-by Bjorn Andersson <[email protected]>
Got it queued.
Andy