summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGeoff Levand <geoff@infradead.org>2018-04-11 17:03:11 +0000
committerSimon Horman <horms@verge.net.au>2018-04-19 10:37:21 +0200
commit7be89276db193079d6db186aa74de762939e8ea0 (patch)
tree0d930bbf92053a00ed883f1e974312d682cca72c
parent798317c134b2acb3b501b336d055cd0f5566a239 (diff)
downloadkexec-tools-7be89276db193079d6db186aa74de762939e8ea0.tar.gz
crashdump-ppc64: Fix integer truncation warning
Fixes warnings like these when building kexec for powerpc (32 bit): crashdump-ppc64.h: warning: large integer implicitly truncated to unsigned type Signed-off-by: Geoff Levand <geoff@infradead.org> Signed-off-by: Simon Horman <horms@verge.net.au>
-rw-r--r--kexec/arch/ppc64/crashdump-ppc64.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/kexec/arch/ppc64/crashdump-ppc64.h b/kexec/arch/ppc64/crashdump-ppc64.h
index 87beb398..b0cba8a2 100644
--- a/kexec/arch/ppc64/crashdump-ppc64.h
+++ b/kexec/arch/ppc64/crashdump-ppc64.h
@@ -14,7 +14,7 @@ void add_usable_mem_rgns(unsigned long long base, unsigned long long size);
#define VMALLOCBASE 0xD000000000000000ULL
#define __pa(x) ((unsigned long)(x)-PAGE_OFFSET)
-#define MAXMEM (-KERNELBASE-VMALLOCBASE)
+#define MAXMEM (-(unsigned long)(KERNELBASE-VMALLOCBASE))
#define COMMAND_LINE_SIZE 2048 /* from kernel */
/* Backup Region, First 64K of System RAM. */