From patchwork Tue Apr 20 06:17:18 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?b?Smlhbmp1biBXYW5nICjnjovlu7rlhpsp?= X-Patchwork-Id: 12213403 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=-16.8 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,UNPARSEABLE_RELAY, 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 9FDD9C433B4 for ; Tue, 20 Apr 2021 06:28:10 +0000 (UTC) Received: from desiato.infradead.org (desiato.infradead.org [90.155.92.199]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 5B8CD60FE9 for ; Tue, 20 Apr 2021 06:28:10 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 5B8CD60FE9 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=mediatek.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-mediatek-bounces+linux-mediatek=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=desiato.20200630; h=Sender:Content-Transfer-Encoding :Content-Type:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To:Message-ID:Date: Subject:CC:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=lT6YuuM6hUraBvHy8KcK8nDyqLhshwczka6yI5rkl50=; b=T3npFkTis4CUJMjlr5pH04Fbu 4DeepfkUuoiv91gvUGDZKs3ufXzXj6wc0V6upME1CflPI2ezb3p2yY0SNYC+sP3y0V3yq9BlnR4Yl at1DysXt0WkkiYhyzc8V9IYl6xwR5NQvp9qj00rKalFeP2Cls7pYTv/SZfLN9M8YSqdp4UTnH6fyB pmnb5Q4Var4nnpTpY/eBc8dNLsZPrF1hLJv1GN9UxxzAplCh803PhTnlhB71kwHegRFYlpVaapigG 9yC/q/jn512RTerx4V3q5BNOQBK7VPPuwRaj58GCl+LCzfmxKgl/DS/bKV2k1sSQvIy9LDqQCn0WO TtSlCHDzA==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lYjrW-00BLZ5-24; Tue, 20 Apr 2021 06:27:54 +0000 Received: from bombadil.infradead.org ([2607:7c80:54:e::133]) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lYjrU-00BLYm-F9; Tue, 20 Apr 2021 06:27:52 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Transfer-Encoding: Content-Type:MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:CC: To:From:Sender:Reply-To:Content-ID:Content-Description; bh=kWGMqSw7OHtKz2kK9JDPgiJR15PLuRQHHzzCBfJ56vM=; b=Rg26TZ24VD6Xaw+lYdw3L9hokB MqD+kjSnWzEj/++GOjos+7pm/IB2Q8m/V/xnpN4p6tKW+mhHC4PKwywnZduC9mux9XhlPQfsZSEP7 CFvDLSVgm2cuxMyRk+zqXjeahGu2v5n6gxPjgdEsQXt9ZL63Xw9NAq1fWPjufO/IO5DC6ba2An+rt BmAzc3Fpg8dqXpqixvfPirst8tWJ6/ZsyVOgvwOFWDxPJneTO/SKBfj3JtKWFgy+VQ8T5KuFEnFCf XLXNRZlKZzyA57L6jlq+UF+CYXYZ8+HnvwRmD+gXaT4oTTMfO4oiRhCTXfmUENAKXljyg918JBrfD E0CXK29g==; Received: from mailgw02.mediatek.com ([216.200.240.185]) by bombadil.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lYjrO-00BqZS-Lw; Tue, 20 Apr 2021 06:27:50 +0000 X-UUID: 0884fb7688ee46288333fe832721cb23-20210419 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mediatek.com; s=dk; h=Content-Transfer-Encoding:Content-Type:MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:CC:To:From; bh=kWGMqSw7OHtKz2kK9JDPgiJR15PLuRQHHzzCBfJ56vM=; b=AqRh6i1OKsJIcwh/nEzPNXCNaFFi5vrPeLM/OGD1xWh64PLOfMXUH4NOUxzvlMKM/aNIVMTtLYwurKsU2JD2yw4KvLSTnV2ezAssbTDOUhKiFy1H2iQO8V44VxCgEvv33/aYsbEe+slGk8e+4yfKw1tUV5SM7DbzuW6HdN15o6o=; X-UUID: 0884fb7688ee46288333fe832721cb23-20210419 Received: from mtkcas66.mediatek.inc [(172.29.193.44)] by mailgw02.mediatek.com (envelope-from ) (musrelay.mediatek.com ESMTP with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 81425106; Mon, 19 Apr 2021 23:27:46 -0700 Received: from mtkmbs05n1.mediatek.inc (172.21.101.15) by MTKMBS62N2.mediatek.inc (172.29.193.42) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Mon, 19 Apr 2021 23:17:43 -0700 Received: from mtkcas10.mediatek.inc (172.21.101.39) by mtkmbs05n1.mediatek.inc (172.21.101.15) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Tue, 20 Apr 2021 14:17:42 +0800 Received: from localhost.localdomain (10.17.3.153) by mtkcas10.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Tue, 20 Apr 2021 14:17:40 +0800 From: Jianjun Wang To: Bjorn Helgaas , Rob Herring , Marc Zyngier , Lorenzo Pieralisi , Ryder Lee CC: Philipp Zabel , Matthias Brugger , , , , , , Jianjun Wang , , , , , , , , Krzysztof Wilczyski , =?utf-8?q?Pali_Roh=C3=A1r?= Subject: [PATCH v10 2/7] PCI: Export pci_pio_to_address() for module use Date: Tue, 20 Apr 2021 14:17:18 +0800 Message-ID: <20210420061723.989-3-jianjun.wang@mediatek.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20210420061723.989-1-jianjun.wang@mediatek.com> References: <20210420061723.989-1-jianjun.wang@mediatek.com> MIME-Version: 1.0 X-MTK: N X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210419_232747_044612_1DABC641 X-CRM114-Status: GOOD ( 10.14 ) X-BeenThere: linux-mediatek@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Linux-mediatek" Errors-To: linux-mediatek-bounces+linux-mediatek=archiver.kernel.org@lists.infradead.org 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 Acked-by: Bjorn Helgaas --- drivers/pci/pci.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/pci/pci.c b/drivers/pci/pci.c index 16a17215f633..09f1714e23be 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_GPL(pci_pio_to_address); unsigned long __weak pci_address_to_pio(phys_addr_t address) {