[PATCH] eliminate the compile warning

From: Lidong Chen
Date: Tue Apr 14 2015 - 10:46:33 EST


Signed-off-by: Lidong Chen <jemmy858585@xxxxxxxxx>
---
arch/x86/kernel/cpu/perf_event.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/arch/x86/kernel/cpu/perf_event.c b/arch/x86/kernel/cpu/perf_event.c
index b71a7f8..40be9af 100644
--- a/arch/x86/kernel/cpu/perf_event.c
+++ b/arch/x86/kernel/cpu/perf_event.c
@@ -187,9 +187,10 @@ static void release_pmc_hardware(void) {}

static bool check_hw_exists(void)
{
- u64 val, val_fail, val_new= ~0;
- int i, reg, reg_fail, ret = 0;
+ u64 val = 0, val_fail = 0, val_new = ~0;
+ int reg = 0, reg_fail = 0, ret = 0;
int bios_fail = 0;
+ int i = 0;

/*
* Check to see if the BIOS enabled any of the counters, if so
--
2.4.0-rc1

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/