[PATCH] Fix compile warnings in get_memory_ranges()

Bernhard Walle bwalle at suse.de
Wed Nov 26 04:00:52 EST 2008


This patch fixes:

        kexec/arch/i386/kexec-x86-common.c: In function ‘get_memory_ranges’:
        kexec/arch/i386/kexec-x86-common.c:189: \
                warning: passing argument 2 of ‘parse_iomem_single’ from incompatible pointer type
        kexec/arch/i386/kexec-x86-common.c:189: \
                warning: passing argument 3 of ‘parse_iomem_single’ from incompatible pointer type

Yes, that was my own code. :-(


Signed-off-by: Bernhard Walle <bwalle at suse.de>
---
 kexec/arch/i386/kexec-x86-common.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/kexec/arch/i386/kexec-x86-common.c b/kexec/arch/i386/kexec-x86-common.c
index 1453780..a468272 100644
--- a/kexec/arch/i386/kexec-x86-common.c
+++ b/kexec/arch/i386/kexec-x86-common.c
@@ -184,7 +184,7 @@ int get_memory_ranges(struct memory_range **range, int *ranges,
 	 */
 	if ((kexec_flags & KEXEC_ON_CRASH) &&
 	    !(kexec_flags & KEXEC_PRESERVE_CONTEXT)) {
-		unsigned long long start, end;
+		uint64_t start, end;
 
 		ret = parse_iomem_single("Crash kernel\n", &start, &end);
 		if (ret != 0) {
-- 
1.6.0.2




More information about the kexec mailing list