From patchwork Mon Aug 3 12:21:04 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yue Haibing X-Patchwork-Id: 11698033 X-Patchwork-Delegate: lorenzo.pieralisi@arm.com Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 0CF9414DD for ; Mon, 3 Aug 2020 12:56:59 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id F3D5A2076E for ; Mon, 3 Aug 2020 12:56:58 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726797AbgHCMV5 (ORCPT ); Mon, 3 Aug 2020 08:21:57 -0400 Received: from szxga07-in.huawei.com ([45.249.212.35]:46364 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726865AbgHCMV4 (ORCPT ); Mon, 3 Aug 2020 08:21:56 -0400 Received: from DGGEMS412-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id 38172B92AFF40E07CB31; Mon, 3 Aug 2020 20:21:50 +0800 (CST) Received: from localhost (10.174.179.108) by DGGEMS412-HUB.china.huawei.com (10.3.19.212) with Microsoft SMTP Server id 14.3.487.0; Mon, 3 Aug 2020 20:21:43 +0800 From: YueHaibing To: , , , , CC: , , YueHaibing Subject: [PATCH -next] PCI: cadence: Make cdns_pci_map_bus stub helper inline Date: Mon, 3 Aug 2020 20:21:04 +0800 Message-ID: <20200803122104.44852-1-yuehaibing@huawei.com> X-Mailer: git-send-email 2.10.2.windows.1 MIME-Version: 1.0 X-Originating-IP: [10.174.179.108] X-CFilter-Loop: Reflected Sender: linux-pci-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pci@vger.kernel.org If CONFIG_PCIE_CADENCE_HOST is n, gcc warns: drivers/pci/controller/cadence/pcie-cadence.h:486:22: warning: 'cdns_pci_map_bus' defined but not used [-Wunused-function] Make stub helper inline to fix this. Signed-off-by: YueHaibing --- drivers/pci/controller/cadence/pcie-cadence.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/pci/controller/cadence/pcie-cadence.h b/drivers/pci/controller/cadence/pcie-cadence.h index 655a6b4d4964..00e44256c3e8 100644 --- a/drivers/pci/controller/cadence/pcie-cadence.h +++ b/drivers/pci/controller/cadence/pcie-cadence.h @@ -483,8 +483,8 @@ static inline int cdns_pcie_host_setup(struct cdns_pcie_rc *rc) return 0; } -static void __iomem *cdns_pci_map_bus(struct pci_bus *bus, unsigned int devfn, - int where) +static inline void __iomem *cdns_pci_map_bus(struct pci_bus *bus, unsigned int devfn, + int where) { return NULL; }