[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <1429022739-4145-2-git-send-email-jemmy858585@gmail.com>
Date: Tue, 14 Apr 2015 22:45:39 +0800
From: Lidong Chen <jemmy858585@...il.com>
To: x86@...nel.org, a.p.zijlstra@...llo.nl, paulus@...ba.org,
mingo@...hat.com, acme@...nel.org, tglx@...utronix.de,
hpa@...or.com
Cc: linux-kernel@...r.kernel.org, Lidong Chen <jemmy858585@...il.com>
Subject: [PATCH] eliminate the compile warning
Signed-off-by: Lidong Chen <jemmy858585@...il.com>
---
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@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists