elf_info.page_offset is 'unsigned long long', while get_page_offset()
has the input param as a type of 'unsigned long *'. It demands explicit
type casting to mute the compiler warning.

Signed-off-by: Pingfan Liu <[email protected]>
Cc: Simon Horman <[email protected]>
To: [email protected]
---
 kexec/arch/arm64/crashdump-arm64.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/kexec/arch/arm64/crashdump-arm64.c 
b/kexec/arch/arm64/crashdump-arm64.c
index 7beb1fb..3098315 100644
--- a/kexec/arch/arm64/crashdump-arm64.c
+++ b/kexec/arch/arm64/crashdump-arm64.c
@@ -182,7 +182,7 @@ int load_crashdump_segments(struct kexec_info *info)
        if (err)
                return EFAILED;
 
-       get_page_offset(&elf_info.page_offset);
+       get_page_offset((unsigned long *)&elf_info.page_offset);
        dbgprintf("%s: page_offset:   %016llx\n", __func__,
                        elf_info.page_offset);
 
-- 
2.31.1


_______________________________________________
kexec mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/kexec

Reply via email to