mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Lidong Chen <jemmy858585@gmail.com>
To: x86@kernel.org, a.p.zijlstra@chello.nl, paulus@samba.org,
	mingo@redhat.com, acme@kernel.org, tglx@linutronix.de,
	hpa@zytor.com
Cc: linux-kernel@vger.kernel.org, Lidong Chen <jemmy858585@gmail.com>
Subject: [PATCH] eliminate the compile warning
Date: Tue, 14 Apr 2015 22:45:39 +0800	[thread overview]
Message-ID: <1429022739-4145-2-git-send-email-jemmy858585@gmail.com> (raw)
In-Reply-To: <1429022739-4145-1-git-send-email-jemmy858585@gmail.com>

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


      reply	other threads:[~2015-04-14 14:46 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-04-14 14:45 [PATCH] eliminate-the-compile-warning for perf_event.c Lidong Chen
2015-04-14 14:45 ` Lidong Chen [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1429022739-4145-2-git-send-email-jemmy858585@gmail.com \
    --to=jemmy858585@gmail.com \
    --cc=a.p.zijlstra@chello.nl \
    --cc=acme@kernel.org \
    --cc=hpa@zytor.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mingo@redhat.com \
    --cc=paulus@samba.org \
    --cc=tglx@linutronix.de \
    --cc=x86@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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®