When DEBUG [ in kexec/arch/ppc64/crashdump-ppc64.c ] is defined, kexec
tools for ppc64 fails with following error
kexec/arch/ppc64/crashdump-ppc64.c: In function ‘get_crash_memory_ranges’:
kexec/arch/ppc64/crashdump-ppc64.c:235: error: redeclaration of ‘i’
with no linkage
kexec/arch/ppc64/crashdump-ppc64.c:109: error: previous declaration of
‘i’ was here
Here is a patch to fix the above error.
Thanks
-Sachin
Signed-off-by : Sachin Sant <[EMAIL PROTECTED]>
* When DEBUG is defined, kexec tools for ppc64 fails with following error
*
* kexec/arch/ppc64/crashdump-ppc64.c: In function âget_crash_memory_rangesâ:
* kexec/arch/ppc64/crashdump-ppc64.c:235: error: redeclaration of âiâ with no
* linkage
* kexec/arch/ppc64/crashdump-ppc64.c:109: error: previous declaration of âiâ
* was here
diff -Naurp a/kexec/arch/ppc64/crashdump-ppc64.c b/kexec/arch/ppc64/crashdump-ppc64.c
--- a/kexec/arch/ppc64/crashdump-ppc64.c 2006-12-18 11:28:53.000000000 +0530
+++ b/kexec/arch/ppc64/crashdump-ppc64.c 2006-12-19 14:27:37.000000000 +0530
@@ -231,11 +231,11 @@ static int get_crash_memory_ranges(struc
*range = crash_memory_range;
*ranges = memory_ranges;
#if DEBUG
- int i;
+ int j;
printf("CRASH MEMORY RANGES\n");
- for(i = 0; i < *ranges; i++) {
- start = crash_memory_range[i].start;
- end = crash_memory_range[i].end;
+ for(j = 0; j < *ranges; j++) {
+ start = crash_memory_range[j].start;
+ end = crash_memory_range[j].end;
fprintf(stderr, "%016Lx-%016Lx\n", start, end);
}
#endif
_______________________________________________
fastboot mailing list
[email protected]
https://lists.osdl.org/mailman/listinfo/fastboot