From patchwork Tue Feb 5 22:07:08 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [79/93] x86/Sandy Bridge: Sandy Bridge workaround depends on CONFIG_PCI X-Patchwork-Submitter: Herton Ronaldo Krzesinski X-Patchwork-Id: 218439 Message-Id: <1360102042-10732-80-git-send-email-herton.krzesinski@canonical.com> To: linux-kernel@vger.kernel.org, stable@vger.kernel.org, kernel-team@lists.ubuntu.com Cc: "H. Peter Anvin" , Jesse Barnes Date: Tue, 5 Feb 2013 20:07:08 -0200 From: Herton Ronaldo Krzesinski List-Id: Kernel team discussions 3.5.7.5 -stable review patch. If anyone has any objections, please let me know. ------------------ From: "H. Peter Anvin" commit e43b3cec711a61edf047adf6204d542f3a659ef8 upstream. early_pci_allowed() and read_pci_config_16() are only available if CONFIG_PCI is defined. Signed-off-by: H. Peter Anvin Cc: Jesse Barnes Signed-off-by: Herton Ronaldo Krzesinski --- 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 8ac6c8a..1cb892f 100644 --- a/arch/x86/kernel/setup.c +++ b/arch/x86/kernel/setup.c @@ -615,6 +615,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 __initconst u16 snb_ids[] = { @@ -639,6 +640,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; }