Skip to contentSkip to conversation

Fix compile warnings in get_memory_ranges()

PATCH Applied Bernhard Walle 2 participants 2 messages Nov 26, 2008 – Nov 28, 2008

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Fix compile warnings in get_memory_ranges()

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. :-(

---
 kexec/arch/i386/kexec-x86-common.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
kexec/arch/i386/kexec-x86-common.c +1 -1
index 1453780..a468272 100644
@@ -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) {
Signature · 7 lines
1.6.0.2


_______________________________________________
kexec mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/kexec
Applied
#1 lore raw
Quoted 9 lines · Bernhard Walle

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. :-(

Thanks, applied.

Signature · 3 lines
Simon Horman
  VA Linux Systems Japan K.K., Sydney, Australia Satellite Office
  H: www.vergenet.net/~horms/             W: www.valinux.co.jp/en

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