From 792634e6d5e5b015176e5eb55476d79b7ae96252 Mon Sep 17 00:00:00 2001 From: Andy Gross Date: Fri, 3 Jul 2015 18:48:06 -0500 Subject: [PATCH] remoteproc: qcom_q6v5_pil: Fix 64 bit This patch fixes some 64 bit issues with compilation. Signed-off-by: Andy Gross --- drivers/remoteproc/qcom_q6v5_pil.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/remoteproc/qcom_q6v5_pil.c b/drivers/remoteproc/qcom_q6v5_pil.c index 975df485b90f..4d63a84db588 100644 --- a/drivers/remoteproc/qcom_q6v5_pil.c +++ b/drivers/remoteproc/qcom_q6v5_pil.c @@ -450,7 +450,7 @@ static int qproc_verify_segments(struct qproc *qproc, const struct firmware *fw) struct elf32_phdr *phdr; const u8 *elf_data = fw->data; unsigned long timeout; - u32 min_addr = (phys_addr_t)ULLONG_MAX; + phys_addr_t min_addr = (phys_addr_t)ULLONG_MAX; u32 size = 0; s32 val; int ret; @@ -470,7 +470,7 @@ static int qproc_verify_segments(struct qproc *qproc, const struct firmware *fw) #if 1 for (i = 0; i < ehdr->e_phnum; i++, phdr++) { - u32 da = phdr->p_paddr; + phys_addr_t da = phdr->p_paddr; u32 memsz = phdr->p_memsz; if (phdr->p_type != PT_LOAD) -- 2.39.5