[PATCH 3/9] x86: Suppress build warnings in quirks

From: Lee Jones
Date: Sat Nov 03 2012 - 18:04:48 EST


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 <tglx@xxxxxxxxxxxxx>
Cc: x86@xxxxxxxxxx
Signed-off-by: Lee Jones <lee.jones@xxxxxxxxxx>
---
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)
--
1.7.9.5

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/