From patchwork Sat Nov 3 22:02:24 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 12654 Return-Path: X-Original-To: patchwork@peony.canonical.com Delivered-To: patchwork@peony.canonical.com Received: from fiordland.canonical.com (fiordland.canonical.com [91.189.94.145]) by peony.canonical.com (Postfix) with ESMTP id 84B4D23FBB for ; Sat, 3 Nov 2012 22:02:52 +0000 (UTC) Received: from mail-pb0-f52.google.com (mail-pb0-f52.google.com [209.85.160.52]) by fiordland.canonical.com (Postfix) with ESMTP id 227F1A18D05 for ; Sat, 3 Nov 2012 22:02:51 +0000 (UTC) Received: by mail-pb0-f52.google.com with SMTP id rr13so3014571pbb.11 for ; Sat, 03 Nov 2012 15:02:51 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-forwarded-to:x-forwarded-for:delivered-to:received-spf:from:to:cc :subject:date:message-id:x-mailer:in-reply-to:references :mime-version:content-type:content-transfer-encoding :x-gm-message-state; bh=ibkf0tR8wrJsuXcunLQzjzlEqlMjCZDR+bND7K/FidM=; b=PZsFJQCopWHk3fSEqDTnXSN4VEHEJOYduBV04RdrX/P06Mk+XKSPZxQF27OxQCVPKP TDp6v096QXwTR/2xdiKK6onS7IANIGktO+qLVRQMKR4dI2Nrurv85vxjch7wI5OD9PLN Bqn0KMH9m1Gf+cw8rui0D/5tXdkNJvDaAL7YiMMNe/TCc/UJk7XzF8Vhi6TBCJAdn71b +gdtPHCRn+Jd8eTwF273jEqGOZShYUSBVklEhWcPxxe8dUthPyXaCMWrzRIV6xkbBSzX DDZbYaq3fiUPE3Qu4qgzMOjKH4IZodQo/YEx8M9xsB0fOHEhzOA2C0vvfbVtBZxnz58a DW9w== Received: by 10.68.83.68 with SMTP id o4mr18457164pby.25.1351980171854; Sat, 03 Nov 2012 15:02:51 -0700 (PDT) X-Forwarded-To: linaro-patchwork@canonical.com X-Forwarded-For: patch@linaro.org linaro-patchwork@canonical.com Delivered-To: patches@linaro.org Received: by 10.68.34.137 with SMTP id z9csp94634pbi; Sat, 3 Nov 2012 15:02:51 -0700 (PDT) Received: by 10.14.200.194 with SMTP id z42mr20522083een.13.1351980170719; Sat, 03 Nov 2012 15:02:50 -0700 (PDT) Received: from mail-ea0-f177.google.com (mail-ea0-f177.google.com [209.85.215.177]) by mx.google.com with ESMTPS id m46si1785277eeo.125.2012.11.03.15.02.50 (version=TLSv1/SSLv3 cipher=OTHER); Sat, 03 Nov 2012 15:02:50 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.215.177 is neither permitted nor denied by best guess record for domain of lee.jones@linaro.org) client-ip=209.85.215.177; Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.215.177 is neither permitted nor denied by best guess record for domain of lee.jones@linaro.org) smtp.mail=lee.jones@linaro.org Received: by mail-ea0-f177.google.com with SMTP id n13so1817438eaa.36 for ; Sat, 03 Nov 2012 15:02:50 -0700 (PDT) Received: by 10.14.213.65 with SMTP id z41mr20255839eeo.29.1351980170045; Sat, 03 Nov 2012 15:02:50 -0700 (PDT) Received: from localhost.localdomain (88.Red-2-139-206.staticIP.rima-tde.net. [2.139.206.88]) by mx.google.com with ESMTPS id d44sm34844369eeo.10.2012.11.03.15.02.48 (version=TLSv1/SSLv3 cipher=OTHER); Sat, 03 Nov 2012 15:02:49 -0700 (PDT) From: Lee Jones To: linux-kernel@vger.kernel.org Cc: Lee Jones , Thomas Gleixner , x86@kernel.org Subject: [PATCH 3/9] x86: Suppress build warnings in quirks Date: Sat, 3 Nov 2012 23:02:24 +0100 Message-Id: <1351980150-24145-4-git-send-email-lee.jones@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1351980150-24145-1-git-send-email-lee.jones@linaro.org> References: <1351980150-24145-1-git-send-email-lee.jones@linaro.org> MIME-Version: 1.0 X-Gm-Message-State: ALoCoQnHYgAX5h0bbePcCphALGbsXfHBpQPS474DI8VhsFcGbMG0mPcEnZh5Md6ew8lEa+iKaHu+ arch/x86/kernel/quirks.c: In function ‘ati_force_enable_hpet’: arch/x86/kernel/quirks.c:364:4: warning: ‘d’ may be used uninitialised in this function [-Wuninitialized] arch/x86/kernel/quirks.c:357:6: note: ‘d’ was declared here arch/x86/kernel/quirks.c:407:21: warning: ‘val’ may be used uninitialised in this function [-Wuninitialized] Cc: Thomas Gleixner Cc: x86@kernel.org Signed-off-by: Lee Jones --- arch/x86/kernel/quirks.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/x86/kernel/quirks.c b/arch/x86/kernel/quirks.c index 1b27de5..d280b70 100644 --- a/arch/x86/kernel/quirks.c +++ b/arch/x86/kernel/quirks.c @@ -354,7 +354,7 @@ static void ati_force_hpet_resume(void) static u32 ati_ixp4x0_rev(struct pci_dev *dev) { - u32 d; + u32 d = 0; u8 b; pci_read_config_byte(dev, 0xac, &b); @@ -371,7 +371,7 @@ static u32 ati_ixp4x0_rev(struct pci_dev *dev) static void ati_force_enable_hpet(struct pci_dev *dev) { - u32 d, val; + u32 d, val = 0; u8 b; if (hpet_address || force_hpet_address)