[PATCH 7/7] ppc64, cleanup: fix unused variable compile warning
Cédric Le Goater
clg at fr.ibm.com
Fri Apr 18 07:08:40 PDT 2014
../kexec/arch/ppc64/crashdump-ppc64.c: In function ‘get_crash_memory_ranges’:
../kexec/arch/ppc64/crashdump-ppc64.c:186:6: warning: unused variable ‘i’ [-Wunused-variable]
int i, n, crash_rng_len = 0;
Signed-off-by: Cédric Le Goater <clg at fr.ibm.com>
---
kexec/arch/ppc64/crashdump-ppc64.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/kexec/arch/ppc64/crashdump-ppc64.c b/kexec/arch/ppc64/crashdump-ppc64.c
index 71a09dbff17f..a3b56697c8db 100644
--- a/kexec/arch/ppc64/crashdump-ppc64.c
+++ b/kexec/arch/ppc64/crashdump-ppc64.c
@@ -184,7 +184,7 @@ static int get_crash_memory_ranges(struct memory_range **range, int *ranges)
DIR *dir, *dmem;
FILE *file;
struct dirent *dentry, *mentry;
- int i, n, crash_rng_len = 0;
+ int n, crash_rng_len = 0;
unsigned long long start, end;
int page_size;
--
1.7.10.4
More information about the kexec
mailing list