Skip to contentSkip to conversation

x86: cpu/mttr/cleanup.c fix compilation warning

PATCH New Jaswinder Singh Rajput 1 participant 1 message Mar 18, 2009 x86

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 x86: cpu/mttr/cleanup.c fix compilation warning

Subject: [PATCH] x86: cpu/mttr/cleanup.c fix compilation warning

arch/x86/kernel/cpu/mtrr/cleanup.c:197: warning: format ‘%d’ expects type ‘int’, but argument 2 has type ‘long unsigned int’

---
 arch/x86/kernel/cpu/mtrr/cleanup.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
arch/x86/kernel/cpu/mtrr/cleanup.c +2 -1
index f4f89fb..ce0fe4b 100644
@@ -160,8 +160,9 @@ x86_get_mtrr_mem_range(struct res_range *range, int nr_range,
 		       unsigned long extra_remove_base,
 		       unsigned long extra_remove_size)
 {
-	unsigned long i, base, size;
+	unsigned long base, size;
 	mtrr_type type;
+	int i;
 
 	for (i = 0; i < num_var_ranges; i++) {
 		type = range_state[i].type;
Signature · 1 line
1.6.0.6