From patchwork Sat Oct 31 11:35:04 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Greg Kroah-Hartman X-Patchwork-Id: 317420 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=-9.8 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS, 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 430D4C388F9 for ; Sat, 31 Oct 2020 11:38:34 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 07CD820731 for ; Sat, 31 Oct 2020 11:38:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1604144314; bh=ETpU0BXfRtZxD2EQRg6oathVavk99g4z1nxhq8Anb7A=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=qfIsa9/VUjYq97nbmIEj59FByr/yXzSp6s7jJhNtDLwn6SBn1rkAht9Z/J6QY1YSb nb3+sYI2xlDoHjxVHbE3sEJPZqbTPPSFdBtIkR499zRU1/MalI+lSJ1FQYtLsrxGGj /imNqI230z49VHT2Ezd9fbOKzyAgOhNBXy9q+4Qo= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727086AbgJaLid (ORCPT ); Sat, 31 Oct 2020 07:38:33 -0400 Received: from mail.kernel.org ([198.145.29.99]:34034 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727033AbgJaLgI (ORCPT ); Sat, 31 Oct 2020 07:36:08 -0400 Received: from localhost (83-86-74-64.cable.dynamic.v4.ziggo.nl [83.86.74.64]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 2638B20739; Sat, 31 Oct 2020 11:36:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1604144167; bh=ETpU0BXfRtZxD2EQRg6oathVavk99g4z1nxhq8Anb7A=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=YbekUnRRs+bAZ4OZ7onNLf7MEhZ3389rAe4czctEN1vHzNev2DzaVFNwJOT5bWEo1 Y2P44fKEyoGFIY7wfozfQCYfPz4/ZdXv8UCvmN95RjQZ1GZUZ/mTqTGhDvKUsl9SQC rS/7RpACilkAenBLV4JLzhLDsHecbhft+jJOSbM4= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Randy Dunlap , Bjorn Helgaas , Andy Shevchenko , Jesse Barnes , Thomas Gleixner , Jacob Pan , Len Brown , Arjan van de Ven Subject: [PATCH 5.4 08/49] x86/PCI: Fix intel_mid_pci.c build error when ACPI is not enabled Date: Sat, 31 Oct 2020 12:35:04 +0100 Message-Id: <20201031113455.847749218@linuxfoundation.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201031113455.439684970@linuxfoundation.org> References: <20201031113455.439684970@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: stable@vger.kernel.org From: Randy Dunlap commit 035fff1f7aab43e420e0098f0854470a5286fb83 upstream. Fix build error when CONFIG_ACPI is not set/enabled by adding the header file which contains a stub for the function in the build error. ../arch/x86/pci/intel_mid_pci.c: In function ‘intel_mid_pci_init’: ../arch/x86/pci/intel_mid_pci.c:303:2: error: implicit declaration of function ‘acpi_noirq_set’; did you mean ‘acpi_irq_get’? [-Werror=implicit-function-declaration] acpi_noirq_set(); Fixes: a912a7584ec3 ("x86/platform/intel-mid: Move PCI initialization to arch_init()") Link: https://lore.kernel.org/r/ea903917-e51b-4cc9-2680-bc1e36efa026@infradead.org Signed-off-by: Randy Dunlap Signed-off-by: Bjorn Helgaas Reviewed-by: Andy Shevchenko Reviewed-by: Jesse Barnes Acked-by: Thomas Gleixner Cc: stable@vger.kernel.org # v4.16+ Cc: Jacob Pan Cc: Len Brown Cc: Jesse Barnes Cc: Arjan van de Ven Signed-off-by: Greg Kroah-Hartman --- arch/x86/pci/intel_mid_pci.c | 1 + 1 file changed, 1 insertion(+) --- a/arch/x86/pci/intel_mid_pci.c +++ b/arch/x86/pci/intel_mid_pci.c @@ -33,6 +33,7 @@ #include #include #include +#include #define PCIE_CAP_OFFSET 0x100