From patchwork Fri Dec 14 16:33:19 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sinan Kaya X-Patchwork-Id: 10731413 X-Patchwork-Delegate: bhelgaas@google.com Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 231BC14E5 for ; Fri, 14 Dec 2018 16:33:41 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9CE1828683 for ; Fri, 14 Dec 2018 16:33:40 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 91596286DE; Fri, 14 Dec 2018 16:33:40 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=unavailable version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 400CA28683 for ; Fri, 14 Dec 2018 16:33:40 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730162AbeLNQde (ORCPT ); Fri, 14 Dec 2018 11:33:34 -0500 Received: from mail.kernel.org ([198.145.29.99]:52754 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730145AbeLNQdc (ORCPT ); Fri, 14 Dec 2018 11:33:32 -0500 Received: from sinanubuntu1604.mkjiurmyylmellclgttazegk5f.bx.internal.cloudapp.net (unknown [23.96.30.70]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id DFF702075B; Fri, 14 Dec 2018 16:33:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1544805212; bh=Bs2xI0cuLFCzGAKEs9CWjrvwd+ItlwUs4IvLfjseGHA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=WXKPs1OJvnjBRCubA+PDaiFRJMeGL5vNJSgUQZNL3Pyy2xtnILby9JuggUX+aROA6 QsFF4jYYBhn4zCG7/blAL1OOdYRXCk+ePoZQpIa/Y7t06GlZflWT3mB572cJXZPzkn dyj94DdLha9JrUbBvsu+KT0My2cLaWP5Ft2g2sTU= From: Sinan Kaya To: linux-acpi@vger.kernel.org Cc: Sinan Kaya , Bjorn Helgaas , linux-pci@vger.kernel.org (open list:PCI SUBSYSTEM), linux-kernel@vger.kernel.org (open list) Subject: [PATCH v9 6/6] PCI: Stub out pci_request_acs() when CONFIG_PCI is not set Date: Fri, 14 Dec 2018 16:33:19 +0000 Message-Id: <20181214163319.27479-7-okaya@kernel.org> X-Mailer: git-send-email 2.19.0 In-Reply-To: <20181214163319.27479-1-okaya@kernel.org> References: <20181214163319.27479-1-okaya@kernel.org> MIME-Version: 1.0 Sender: linux-pci-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pci@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP ACPI IORT table code relies on pci_request_acs() to be present. Define a stub function when CONFI_PCI is not set. Signed-off-by: Sinan Kaya --- include/linux/pci.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/linux/pci.h b/include/linux/pci.h index 51a5a5217667..f0f2f55ea93c 100644 --- a/include/linux/pci.h +++ b/include/linux/pci.h @@ -2101,7 +2101,11 @@ static inline struct pci_dev *pcie_find_root_port(struct pci_dev *dev) return NULL; } +#ifdef CONFIG_PCI void pci_request_acs(void); +#else +static inline void pci_request_acs(void) {} +#endif bool pci_acs_enabled(struct pci_dev *pdev, u16 acs_flags); bool pci_acs_path_enabled(struct pci_dev *start, struct pci_dev *end, u16 acs_flags);