diff mbox

[2/6] qcom-scm: fix header compile errors

Message ID 1443556138-21085-3-git-send-email-robdclark@gmail.com (mailing list archive)
State New, archived
Headers show

Commit Message

Rob Clark Sept. 29, 2015, 7:48 p.m. UTC
Add missing #include for types.h to have u32, etc.  And fwd declare
'struct cpumask'.

Signed-off-by: Rob Clark <robdclark@gmail.com>
---
 include/linux/qcom_scm.h | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

Comments

Stephen Boyd Sept. 29, 2015, 9:02 p.m. UTC | #1
On 09/29, Rob Clark wrote:
> Add missing #include for types.h to have u32, etc.  And fwd declare
> 'struct cpumask'.
> 
> Signed-off-by: Rob Clark <robdclark@gmail.com>
> ---

We should change the arguments for the implementation too.
diff mbox

Patch

diff --git a/include/linux/qcom_scm.h b/include/linux/qcom_scm.h
index 46d41e4..c536b70 100644
--- a/include/linux/qcom_scm.h
+++ b/include/linux/qcom_scm.h
@@ -13,8 +13,11 @@ 
 #ifndef __QCOM_SCM_H
 #define __QCOM_SCM_H
 
-extern int qcom_scm_set_cold_boot_addr(void *entry, const cpumask_t *cpus);
-extern int qcom_scm_set_warm_boot_addr(void *entry, const cpumask_t *cpus);
+#include <linux/types.h>
+
+struct cpumask;
+extern int qcom_scm_set_cold_boot_addr(void *entry, const struct cpumask *cpus);
+extern int qcom_scm_set_warm_boot_addr(void *entry, const struct cpumask *cpus);
 
 #define QCOM_SCM_HDCP_MAX_REQ_CNT	5