From: Jaswinder Singh Rajput Date: Wed, 18 Mar 2009 12:06:55 +0000 (+0530) Subject: x86: cpu/mttr/cleanup.c fix compilation warning X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=4e16c888754468a58d4829c2eba2c6aa3a065e2b;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git 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’ Signed-off-by: Jaswinder Singh Rajput Cc: Yinghai Lu LKML-Reference: <1237378015.13488.1.camel@localhost.localdomain> Signed-off-by: Ingo Molnar --- diff --git a/arch/x86/kernel/cpu/mtrr/cleanup.c b/arch/x86/kernel/cpu/mtrr/cleanup.c index f4f89fbc228f..ce0fe4b5c04f 100644 --- a/arch/x86/kernel/cpu/mtrr/cleanup.c +++ b/arch/x86/kernel/cpu/mtrr/cleanup.c @@ -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;