lkml.org 
[lkml]   [2015]   [Apr]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH] eliminate the compile warning
Date
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


\
 
 \ /
  Last update: 2015-04-14 17:21    [W:0.060 / U:1.268 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site