summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPingfan Liu <piliu@redhat.com>2022-03-31 13:59:33 +0800
committerSimon Horman <horms@verge.net.au>2022-04-01 15:54:32 +0200
commit1d8273d82b667d168939ba322adb5449d6171704 (patch)
tree51a13ffd7c62aeb1ffda83e240396c125d9f5853
parent33778949c1325fd28a9a0e27fd7595359d8fec75 (diff)
downloadkexec-tools-1d8273d82b667d168939ba322adb5449d6171704.tar.gz
arm64/crashdump-arm64: explicit type conversion to suppress compiler warning
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 <piliu@redhat.com> Signed-off-by: Simon Horman <horms@verge.net.au>
-rw-r--r--kexec/arch/arm64/crashdump-arm64.c2
1 files changed, 1 insertions, 1 deletions
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);