Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp579953pxb; Fri, 16 Apr 2021 12:45:42 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzTI4RbdFDoQSSVtSiljJSZSUSPNYsyjH6/t0+9xkY/fzTEVg3iTmFu2nCnLIZEnE3sf7y0 X-Received: by 2002:aa7:c2cc:: with SMTP id m12mr12373126edp.259.1618602342310; Fri, 16 Apr 2021 12:45:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618602342; cv=none; d=google.com; s=arc-20160816; b=sGPutj+egvS+SEHPIcy1kTHvFBVkLPjNHsrkITm3Gv4vfrGK/7QWfYeQgHxTtxP1H/ 9qWxUDxJwVbHlAYr1UhzC8hA5FLmNk2/NTLrwLg0EGGVqfx3Lh6rpX+5p6EGocPvLIzV 0f/iMOfppcU4tsk3epaQ0hFcvKHkepcQq2f8RlMYF60av+SZ3H+PkIa1gFesZKPU8YOd 1TBK6NqA32rIHKAkA602u7TMFvme/5Q8QMsTUH7R4JIj/+PemZFh1/DvvdKp8ielTj/5 6Y0eo8pKjURNte/XnzyHLXmdCHdqWWKWDXblp9jnNYBptAJAxhgYQRDTfhGKSSKkGxc6 iOxg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:message-id:subject:cc:to:from:date :dkim-signature; bh=Y4CGOQ3VVzVOoh+l3/YBmQlewKvatoJkaq/GIU/YJuU=; b=PIRx8QCeSwBufRbgIGRwPbbEiYyYuzUu/2R67Ztx3HHV3dxeM6hZ/U4Z6T5uZ/wywY QV5XllsuNUbGzzCt7Lx5SzSmAlsH3X3c8Vc5IrCw/u+CYRJCeeg94Xc8BOnWKx04Fr0v cp7Zxs5rJzvU86E4ZOLUg7gec+KZBLSo5LBEMFbIRNRC6D4PgaUcqMgNZqy3M0qkUYUt 7HVxIQIYUJGwm2uOcjVfYRY+ugzRHPWs/1/Tc9puiCHIS1YH0p4i6xDpcSFc6HZyVgZH qFlL+62HoMsF06tkoUvAMmlJl8VOknwCIjY5q6KPQblJYn5KWhFk+TXgr7t0NnIkx8TJ veRw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=i+nsE09t; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id mp6si4799332ejc.146.2021.04.16.12.45.19; Fri, 16 Apr 2021 12:45:42 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=i+nsE09t; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239934AbhDPTYg (ORCPT + 99 others); Fri, 16 Apr 2021 15:24:36 -0400 Received: from mail.kernel.org ([198.145.29.99]:60906 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235362AbhDPTYf (ORCPT ); Fri, 16 Apr 2021 15:24:35 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 3B84B6137D; Fri, 16 Apr 2021 19:24:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1618601050; bh=qHawK0oSTOLvJhEkLLbelkvEtYDRemD5y/71PvXJsow=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=i+nsE09tHA0GPcdM2/MeTaNM0szdQ0WdGtOryocd2mlqAtBAPS//L0i0bzZXsO8/u fkLV7Gvab0QGNzDId6j792QJPu/gog3Dicsi9l6jZFfqUa3Plj723IeLds1pJpEKyr 6OgPJZied02D4CRJM27ck/2DbUH0P6noqZEX7ncjo7RzthjBNAzaObjGEgxy17r7VL +SzfZO2eKYv3O9Q0TMm2hz5GTNKJ/yfV2ONFoik610B/49nvK59V7cy8m7CfnUYsqV 5lioX2gDeS8C6LthsG8R30YIzz9snIrCPJCSf5aLBXNxUvo3ks8yjt+OS6lELHHJwv 0hfkytCmujThA== Date: Fri, 16 Apr 2021 14:24:09 -0500 From: Bjorn Helgaas To: Lorenzo Pieralisi Cc: Pali =?iso-8859-1?Q?Roh=E1r?= , Bjorn Helgaas , Jianjun Wang , Rob Herring , Marc Zyngier , Ryder Lee , Philipp Zabel , Matthias Brugger , linux-pci@vger.kernel.org, linux-mediatek@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, youlin.pei@mediatek.com, chuanjia.liu@mediatek.com, qizhong.cheng@mediatek.com, sin_jieyang@mediatek.com, drinkcat@chromium.org, Rex-BC.Chen@mediatek.com, anson.chuang@mediatek.com, Krzysztof Wilczyski Subject: Re: [v9,2/7] PCI: Export pci_pio_to_address() for module use Message-ID: <20210416192409.GA2744791@bjorn-Precision-5520> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20210413095257.GA21802@lpieralisi> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Apr 13, 2021 at 10:53:05AM +0100, Lorenzo Pieralisi wrote: > On Wed, Mar 24, 2021 at 10:09:42AM +0100, Pali Roh?r wrote: > > On Wednesday 24 March 2021 11:05:05 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 > > > --- > > > drivers/pci/pci.c | 1 + > > > 1 file changed, 1 insertion(+) > > > > > > diff --git a/drivers/pci/pci.c b/drivers/pci/pci.c > > > index 16a17215f633..12bba221c9f2 100644 > > > --- a/drivers/pci/pci.c > > > +++ b/drivers/pci/pci.c > > > @@ -4052,6 +4052,7 @@ phys_addr_t pci_pio_to_address(unsigned long pio) > > > > > > return address; > > > } > > > +EXPORT_SYMBOL(pci_pio_to_address); > > > > Hello! I'm not sure if EXPORT_SYMBOL is correct because file has GPL-2.0 > > header. Should not be in this case used only EXPORT_SYMBOL_GPL? Maybe > > other people would know what is correct? > > I think this should be EXPORT_SYMBOL_GPL(), I can make this change > but this requires Bjorn's ACK to go upstream (Bjorn, it is my fault, > it was assigned to me on patchwork, now updated, please have a look). Yep, looks good to me, and I agree it should be EXPORT_SYMBOL_GPL(). Acked-by: Bjorn Helgaas > > > > > > unsigned long __weak pci_address_to_pio(phys_addr_t address) > > > { > > > -- > > > 2.25.1 > > >