Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.7 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2FAB8C433E3 for ; Thu, 20 Aug 2020 13:13:54 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 0E2BA22BEA for ; Thu, 20 Aug 2020 13:13:54 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728676AbgHTNNw (ORCPT ); Thu, 20 Aug 2020 09:13:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35158 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728724AbgHTNNX (ORCPT ); Thu, 20 Aug 2020 09:13:23 -0400 X-Greylist: delayed 1176 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Thu, 20 Aug 2020 06:13:22 PDT Received: from tartarus.angband.pl (tartarus.angband.pl [IPv6:2001:41d0:602:dbe::8]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9393AC061386 for ; Thu, 20 Aug 2020 06:13:21 -0700 (PDT) Received: from [2a02:a31c:8245:f980::4] (helo=valinor.angband.pl) by tartarus.angband.pl with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1k8k4J-0002dR-Q1; Thu, 20 Aug 2020 14:53:25 +0200 Received: from kilobyte by valinor.angband.pl with local (Exim 4.94) (envelope-from ) id 1k8k4J-0002ba-9U; Thu, 20 Aug 2020 14:53:23 +0200 From: Adam Borowski To: Bjorn Helgaas , Thomas Gleixner , Ingo Molnar , Borislav Petkov , x86@kernel.org, linux-pci@vger.kernel.org Cc: Adam Borowski Date: Thu, 20 Aug 2020 14:53:20 +0200 Message-Id: <20200820125320.9967-1-kilobyte@angband.pl> X-Mailer: git-send-email 2.28.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-SA-Exim-Connect-IP: 2a02:a31c:8245:f980::4 X-SA-Exim-Mail-From: kilobyte@angband.pl Subject: [PATCH] x86/pci: don't set acpi stuff if !CONFIG_ACPI X-SA-Exim-Version: 4.2.1 (built Wed, 08 May 2019 21:11:16 +0000) X-SA-Exim-Scanned: Yes (on tartarus.angband.pl) Sender: linux-pci-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pci@vger.kernel.org Not that x86 without ACPI sees any real use... Signed-off-by: Adam Borowski --- Found by randconfig builds. arch/x86/pci/intel_mid_pci.c | 2 ++ arch/x86/pci/xen.c | 2 ++ 2 files changed, 4 insertions(+) diff --git a/arch/x86/pci/intel_mid_pci.c b/arch/x86/pci/intel_mid_pci.c index 00c62115f39c..f14a911f0d06 100644 --- a/arch/x86/pci/intel_mid_pci.c +++ b/arch/x86/pci/intel_mid_pci.c @@ -299,8 +299,10 @@ int __init intel_mid_pci_init(void) pcibios_disable_irq = intel_mid_pci_irq_disable; pci_root_ops = intel_mid_pci_ops; pci_soc_mode = 1; +#ifdef CONFIG_ACPI /* Continue with standard init */ acpi_noirq_set(); +#endif return 1; } diff --git a/arch/x86/pci/xen.c b/arch/x86/pci/xen.c index 9f9aad42ccff..681eb5c34c03 100644 --- a/arch/x86/pci/xen.c +++ b/arch/x86/pci/xen.c @@ -406,8 +406,10 @@ int __init pci_xen_init(void) pcibios_enable_irq = xen_pcifront_enable_irq; pcibios_disable_irq = NULL; +#ifdef CONFIG_ACPI /* Keep ACPI out of the picture */ acpi_noirq_set(); +#endif #ifdef CONFIG_PCI_MSI x86_msi.setup_msi_irqs = xen_setup_msi_irqs; -- 2.28.0