* [PATCH] eliminate-the-compile-warning for perf_event.c
@ 2015-04-14 14:45 Lidong Chen
2015-04-14 14:45 ` [PATCH] eliminate the compile warning Lidong Chen
0 siblings, 1 reply; 2+ messages in thread
From: Lidong Chen @ 2015-04-14 14:45 UTC (permalink / raw)
To: x86, a.p.zijlstra, paulus, mingo, acme, tglx, hpa
Cc: linux-kernel, Lidong Chen
From: Lidong Chen <406264077@qq.com>
arch/x86/kernel/cpu/perf_event.c: In function ‘check_hw_exists’:
arch/x86/kernel/cpu/perf_event.c:190: warning: ‘val_fail’ may be used uninitialized in this function
arch/x86/kernel/cpu/perf_event.c:191: warning: ‘reg_fail’ may be used uninitialized in this function
Lidong Chen (1):
eliminate the compile warning
arch/x86/kernel/cpu/perf_event.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
--
2.4.0-rc1
^ permalink raw reply [flat|nested] 2+ messages in thread
* [PATCH] eliminate the compile warning
2015-04-14 14:45 [PATCH] eliminate-the-compile-warning for perf_event.c Lidong Chen
@ 2015-04-14 14:45 ` Lidong Chen
0 siblings, 0 replies; 2+ messages in thread
From: Lidong Chen @ 2015-04-14 14:45 UTC (permalink / raw)
To: x86, a.p.zijlstra, paulus, mingo, acme, tglx, hpa
Cc: linux-kernel, Lidong Chen
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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-04-14 14:46 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-04-14 14:45 [PATCH] eliminate-the-compile-warning for perf_event.c Lidong Chen
2015-04-14 14:45 ` [PATCH] eliminate the compile warning Lidong Chen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®