I'm resending this patch for 3.0 tree since it didn't made it into 3.0.61
release

It's based on commit e43b3cec711a61edf047adf6204d542f3a659ef8 upstream.

It fixes a build failure if no CONFIG_PIC is set in the config file

early_pci_allowed() and read_pci_config_16() are only available if
CONFIG_PCI is defined.
    
Signed-off-by: H. Peter Anvin <[email protected]>
Cc: Jesse Barnes <[email protected]>
Signed-off-by: Abdallah Chatila <[email protected]>
---
 arch/x86/kernel/setup.c |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/arch/x86/kernel/setup.c b/arch/x86/kernel/setup.c
index eb9eb8b..6c4e9ff 100644
--- a/arch/x86/kernel/setup.c
+++ b/arch/x86/kernel/setup.c
@@ -633,6 +633,7 @@ static unsigned reserve_low = CONFIG_X86_RESERVE_LOW << 10;
 
 static bool __init snb_gfx_workaround_needed(void)
 {
+#ifdef CONFIG_PCI
        int i;
        u16 vendor, devid;
        static const u16 snb_ids[] = {
@@ -657,6 +658,7 @@ static bool __init snb_gfx_workaround_needed(void)
        for (i = 0; i < ARRAY_SIZE(snb_ids); i++)
                if (devid == snb_ids[i])
                        return true;
+#endif
 
        return false;
 }
-- 
1.7.10.4

--
To unsubscribe from this list: send the line "unsubscribe stable" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to