Received: by 2002:a25:86ce:0:0:0:0:0 with SMTP id y14csp924988ybm; Wed, 22 May 2019 14:03:15 -0700 (PDT) X-Google-Smtp-Source: APXvYqzGKoNm2Du70MZJcI7PC/cD1khJjAqdfbh6f2XGlo4I3tPUVlMRKfnt0eCae4fLMfoibs49 X-Received: by 2002:aa7:90ce:: with SMTP id k14mr15692967pfk.239.1558558995027; Wed, 22 May 2019 14:03:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558558995; cv=none; d=google.com; s=arc-20160816; b=RnNW8QFLB6Ee3+ZD3eygBHidEubbqQdW7/3BsSFSPPzu5ztDhVGyXTUQ07f78Or+Sv 4H1vPbhM2gt/Ir7KE/oYk8ixVE/YB+sC32+fKKk8r3hnRCl7r6REskp2IIYNCidB0SZT tcf6Yq5xCdF8yWT5C+V19vM9eD3PmmIks2CbjZbCfVf8tM+4smDgNUOJU9gfUdKBxZ1o yWHRJeL6QX1Ivh/dn7fhqoBwlzQ2VNnv/RE3IYcCl/JNYEwg3s2kgcWHJ3fuQ4srUF5v KBB2p9TRay22pL6MfvV//sf/3UUzfztsnQudMmkM8QnOZoNv24Q5xq0VZvnDujeMYk5i zEeA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=edcGHl0BUSg+r6VK7UBvvsSjg3WmWNfgAVOVuGiw2xU=; b=QKR9OIThmrszhVi5L8HM6wMnqOLhZRjbgvKtTlGtpbfhgkiV+ynIrYZATBdNDIEZJd jYkvT5HaLpiiXpkOCLnLMnC5BTG9Q2o5JqxzDVhL+6xbsCYBOTJ9KN5noHHOKUX+wGfC Fu8qy/KnglkUE8RiR4KKPeS+fLgsw3CbEIblSWus08aJh5hvUHHKXWrVEFpnUaATYUH+ WwbMuwTTkkJ+9shuOFnTplMqAMwo/jXFCuKmd+8blSSyKmNunK0KCJJurD3rKS2nvokF SlPl6pG1ae8B6wLGDC3BPK9AMDrfX/u8Ye2k8cx7M0PKGJlqLtWE5ap/TL1zUY0rHhbs 0AGw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=NMu4b6BJ; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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. [209.132.180.67]) by mx.google.com with ESMTP id z23si27231488pfa.277.2019.05.22.14.02.59; Wed, 22 May 2019 14:03:15 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=NMu4b6BJ; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 S1730190AbfEVVAk (ORCPT + 99 others); Wed, 22 May 2019 17:00:40 -0400 Received: from mail.kernel.org ([198.145.29.99]:41854 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729686AbfEVVAk (ORCPT ); Wed, 22 May 2019 17:00:40 -0400 Received: from localhost (unknown [69.71.4.100]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 3FF2121019; Wed, 22 May 2019 21:00:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1558558839; bh=DAAiD6IH0KlDghAVNPmVbeERdOtKivo01YxuNAw7Lv4=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=NMu4b6BJ6eGOg5zZMYjFoMJPEjwWgJzXYlUFNL/cVGdMfzr6eLQQV4fTw0oerv/D+ RP2brANDVsvcMxhzfOECmHSJFZ8Ghm4KstXuGdGVc+DEa3jtgRa2btaLFFe575w+TH 4i9jAAXLgNkFwSgCIMEOX1dAXlJtDolPRrkjQVhw= Date: Wed, 22 May 2019 16:00:38 -0500 From: Bjorn Helgaas To: "Isaac J. Manjarres" Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-pci@vger.kernel.org, iommu@lists.linux-foundation.org, linux-arm-kernel@lists.infradead.org, robh+dt@kernel.org, frowand.list@gmail.com, joro@8bytes.org, robin.murphy@arm.com, will.deacon@arm.com, kernel-team@android.com, pratikp@codeaurora.org, lmark@codeaurora.org Subject: Re: [RFC/PATCH 2/4] PCI: Export PCI ACS and DMA searching functions to modules Message-ID: <20190522210038.GE79339@google.com> References: <1558118857-16912-1-git-send-email-isaacm@codeaurora.org> <1558118857-16912-3-git-send-email-isaacm@codeaurora.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1558118857-16912-3-git-send-email-isaacm@codeaurora.org> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, May 17, 2019 at 11:47:35AM -0700, Isaac J. Manjarres wrote: > IOMMU drivers that can be compiled as modules may > want to use pci_for_each_dma_alias() and pci_request_acs(), > so export those functions. > > Signed-off-by: Isaac J. Manjarres Acked-by: Bjorn Helgaas > --- > drivers/pci/pci.c | 1 + > drivers/pci/search.c | 1 + > 2 files changed, 2 insertions(+) > > diff --git a/drivers/pci/pci.c b/drivers/pci/pci.c > index 766f577..3f354c1 100644 > --- a/drivers/pci/pci.c > +++ b/drivers/pci/pci.c > @@ -3124,6 +3124,7 @@ void pci_request_acs(void) > { > pci_acs_enable = 1; > } > +EXPORT_SYMBOL_GPL(pci_request_acs); > > static const char *disable_acs_redir_param; > > diff --git a/drivers/pci/search.c b/drivers/pci/search.c > index 2b5f720..cf9ede9 100644 > --- a/drivers/pci/search.c > +++ b/drivers/pci/search.c > @@ -111,6 +111,7 @@ int pci_for_each_dma_alias(struct pci_dev *pdev, > > return ret; > } > +EXPORT_SYMBOL_GPL(pci_for_each_dma_alias); > > static struct pci_bus *pci_do_find_bus(struct pci_bus *bus, unsigned char busnr) > { > -- > The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, > a Linux Foundation Collaborative Project >