diff options
author | Sachin P. Sant <sachinp@in.ibm.com> | 2006-12-19 14:41:11 +0530 |
---|---|---|
committer | Simon Horman <horms@verge.net.au> | 2006-12-20 16:05:04 +0900 |
commit | 1e2050cf828181eb125dfdf6af99a4f5170c0462 (patch) | |
tree | ff9adaaad3b160b7ba0c1d7af9177fa81583dc76 | |
parent | bbc9e730b4c407e8e9587dbe362513f0efb25156 (diff) |
fix ppc64 kexec tools build failure when DEBUG is enabled.
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 <sachinp@in.ibm.com>
Signed-off-by : Simon Horman <horms@verge.net.au>
-rw-r--r-- | kexec/arch/ppc64/crashdump-ppc64.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/kexec/arch/ppc64/crashdump-ppc64.c b/kexec/arch/ppc64/crashdump-ppc64.c index 00740dc..092419c 100644 --- a/kexec/arch/ppc64/crashdump-ppc64.c +++ b/kexec/arch/ppc64/crashdump-ppc64.c @@ -231,11 +231,11 @@ static int get_crash_memory_ranges(struct memory_range **range, int *ranges) *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 |