Messages in this thread Patch in this message |  | | From | Lidong Chen <> | Subject | [PATCH] eliminate the compile warning | Date | Tue, 14 Apr 2015 22:45:39 +0800 |
| |
Signed-off-by: Lidong Chen <jemmy858585@gmail.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
|  |