From mboxrd@z Thu Jan 1 00:00:00 1970 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=-17.5 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=unavailable 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 ACA28C83012 for ; Wed, 2 Dec 2020 13:49:52 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id E5F542173E for ; Wed, 2 Dec 2020 13:49:50 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730148AbgLBNtp (ORCPT ); Wed, 2 Dec 2020 08:49:45 -0500 Received: from mail.kernel.org ([198.145.29.99]:56444 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726023AbgLBNtp (ORCPT ); Wed, 2 Dec 2020 08:49:45 -0500 Date: Wed, 2 Dec 2020 07:49:03 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1606916944; bh=b/Xu8QFJnFffNq+YXrCB3fOxEiWxD3U0avrdF1PeCVQ=; h=From:To:Cc:Subject:In-Reply-To:From; b=O1HEZyDTBcrhaOHEmudAXKJuxUTiKzsV6vBtEG6fiPd7TZNPtXd6NHjbPlW9dftgo zrrwWLOw1lTT0+YrZqnWuW6jxIvxIOXUwXM4vRLbXFFe6VlEitzJAVPRi9Ed5ajptY WcqxutReaW5Vlyyno0RnDmtkDFcw10kgjIEKrC8c= From: Bjorn Helgaas To: Jianjun Wang Cc: Bjorn Helgaas , Matthias Brugger , linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, youlin.pei@mediatek.com, Sj Huang Subject: Re: [v1] PCI: Export pci_pio_to_address() for module use Message-ID: <20201202134903.GA1419281@bjorn-Precision-5520> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20201202131255.6541-1-jianjun.wang@mediatek.com> Precedence: bulk List-ID: X-Mailing-List: linux-pci@vger.kernel.org On Wed, Dec 02, 2020 at 09:12:55PM +0800, Jianjun Wang wrote: > This interface will be used by PCI host drivers for PIO translation, > export it to support compiling those drivers as kernel modules. > > Signed-off-by: Jianjun Wang Please include this in a series that adds a modular host driver or converts an existing one to be modular. That way we know we have at least one user and things get merged in the right order. > --- > drivers/pci/pci.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/pci/pci.c b/drivers/pci/pci.c > index a458c46d7e39..509008899182 100644 > --- a/drivers/pci/pci.c > +++ b/drivers/pci/pci.c > @@ -4003,6 +4003,7 @@ phys_addr_t pci_pio_to_address(unsigned long pio) > > return address; > } > +EXPORT_SYMBOL(pci_pio_to_address); > > unsigned long __weak pci_address_to_pio(phys_addr_t address) > { > -- > 2.25.1 >