From: Tomasz Figa <tfiga@chromium.org> To: Christoph Hellwig <hch@lst.de> Cc: "open list:IOMMU DRIVERS" <iommu@lists.linux-foundation.org>, "linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>, Marek Szyprowski <m.szyprowski@samsung.com>, Robin Murphy <robin.murphy@arm.com>, Greg Kroah-Hartman <gregkh@linuxfoundation.org>, Joerg Roedel <joro@8bytes.org>, Will Deacon <will.deacon@arm.com>, Vineet Gupta <vgupta@synopsys.com>, Hans-Christian Noren Egtvedt <egtvedt@samfundet.no>, Mitchel Humpherys <mitchelh@codeaurora.org>, Krzysztof Kozlowski <krzk@kernel.org>, Arnd Bergmann <arnd@arndb.de> Subject: Re: [RFC PATCH 1/5] base: dma-mapping: Export commonly used symbols Date: Thu, 6 Jul 2017 00:22:35 +0900 [thread overview] Message-ID: <CAAFQd5DijKbNJ-8wHh=+2Z2y1nSF-LC8R+d+NktTRF4iQqPsrA@mail.gmail.com> (raw) In-Reply-To: <20170705151728.GA2479@lst.de> Hi Christoph, Thanks for comments! On Thu, Jul 6, 2017 at 12:17 AM, Christoph Hellwig <hch@lst.de> wrote: > Please use EXPORT_SYMBOL_GPL for any of these exports, as they are > internal linux implementration details by any definition of it. Right. I typically lean towards EXPORT_SYMBOL_GPL(), but was misled by existing EXPORT_SYMBOL()s in the file. Will fix. > > On Wed, Jul 05, 2017 at 04:12:11PM +0900, Tomasz Figa wrote: >> There is nothing wrong in having a loadable module implementing DMA API, >> for example to be used for sub-devices registered by the module. >> However, most of the functions from dma-mapping do not have their >> symbols exported, making it impossible to use them from loadable modules. > > I'd like to see the patches for this use case as well. We don't > generally export symbols without seeing the users. Generally the user is a work in progress that should be posted in a very near future. You can find a reference to our downstream tree at chromium.org in the cover letter. Obviously I don't mind including patches from this series in the driver series later and that's one of the reasons for this series being RFC. Best regards, Tomasz
WARNING: multiple messages have this Message-ID (diff)
From: Tomasz Figa <tfiga-F7+t8E8rja9g9hUCZPvPmw@public.gmane.org> To: Christoph Hellwig <hch-jcswGhMUV9g@public.gmane.org> Cc: Arnd Bergmann <arnd-r2nGTMty4D4@public.gmane.org>, Greg Kroah-Hartman <gregkh-hQyY1W1yCW8ekmWlsbkhG0B+6BGkLq7r@public.gmane.org>, Will Deacon <will.deacon-5wv7dgnIgG8@public.gmane.org>, "linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org" <linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>, Krzysztof Kozlowski <krzk-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>, "open list:IOMMU DRIVERS" <iommu-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org>, Vineet Gupta <vgupta-HKixBCOQz3hWk0Htik3J/w@public.gmane.org>, Hans-Christian Noren Egtvedt <egtvedt-BrfabpQBY5qlHtIdYg32fQ@public.gmane.org> Subject: Re: [RFC PATCH 1/5] base: dma-mapping: Export commonly used symbols Date: Thu, 6 Jul 2017 00:22:35 +0900 [thread overview] Message-ID: <CAAFQd5DijKbNJ-8wHh=+2Z2y1nSF-LC8R+d+NktTRF4iQqPsrA@mail.gmail.com> (raw) In-Reply-To: <20170705151728.GA2479-jcswGhMUV9g@public.gmane.org> Hi Christoph, Thanks for comments! On Thu, Jul 6, 2017 at 12:17 AM, Christoph Hellwig <hch-jcswGhMUV9g@public.gmane.org> wrote: > Please use EXPORT_SYMBOL_GPL for any of these exports, as they are > internal linux implementration details by any definition of it. Right. I typically lean towards EXPORT_SYMBOL_GPL(), but was misled by existing EXPORT_SYMBOL()s in the file. Will fix. > > On Wed, Jul 05, 2017 at 04:12:11PM +0900, Tomasz Figa wrote: >> There is nothing wrong in having a loadable module implementing DMA API, >> for example to be used for sub-devices registered by the module. >> However, most of the functions from dma-mapping do not have their >> symbols exported, making it impossible to use them from loadable modules. > > I'd like to see the patches for this use case as well. We don't > generally export symbols without seeing the users. Generally the user is a work in progress that should be posted in a very near future. You can find a reference to our downstream tree at chromium.org in the cover letter. Obviously I don't mind including patches from this series in the driver series later and that's one of the reasons for this series being RFC. Best regards, Tomasz
next prev parent reply other threads:[~2017-07-05 15:23 UTC|newest] Thread overview: 50+ messages / expand[flat|nested] mbox.gz Atom feed top 2017-07-05 7:12 [RFC PATCH 0/5] Fixes for loadable modules implementing DMA/IOMMU APIs Tomasz Figa 2017-07-05 7:12 ` [RFC PATCH 1/5] base: dma-mapping: Export commonly used symbols Tomasz Figa 2017-07-05 7:12 ` Tomasz Figa 2017-07-05 15:17 ` Christoph Hellwig 2017-07-05 15:17 ` Christoph Hellwig 2017-07-05 15:22 ` Tomasz Figa [this message] 2017-07-05 15:22 ` Tomasz Figa 2017-07-05 17:20 ` Christoph Hellwig 2017-07-05 17:20 ` Christoph Hellwig 2017-07-06 1:44 ` Tomasz Figa 2017-07-06 1:44 ` Tomasz Figa 2017-07-06 8:26 ` Arnd Bergmann 2017-07-06 8:26 ` Arnd Bergmann 2017-07-06 8:34 ` Tomasz Figa 2017-07-06 8:34 ` Tomasz Figa 2017-07-06 8:36 ` Tomasz Figa 2017-07-06 12:23 ` Arnd Bergmann 2017-07-06 12:23 ` Arnd Bergmann 2017-07-06 13:31 ` Tomasz Figa 2017-07-06 13:31 ` Tomasz Figa 2017-07-06 13:49 ` Tomasz Figa 2017-07-06 14:02 ` Arnd Bergmann 2017-07-06 14:02 ` Arnd Bergmann 2017-07-06 14:06 ` Tomasz Figa 2017-07-06 14:27 ` Arnd Bergmann 2017-07-06 14:27 ` Arnd Bergmann 2017-07-06 14:35 ` Tomasz Figa 2017-07-06 13:56 ` Arnd Bergmann 2017-07-06 13:56 ` Arnd Bergmann 2017-07-05 7:12 ` [RFC PATCH 2/5] base: dma-mapping: Provide a function to look up remapped pages Tomasz Figa 2017-07-05 7:12 ` Tomasz Figa 2017-07-05 7:12 ` [RFC PATCH 3/5] iommu: Export non-static functions to use in modules Tomasz Figa 2017-07-05 7:12 ` Tomasz Figa 2017-07-05 7:12 ` [RFC PATCH 4/5] iommu/dma: " Tomasz Figa 2017-07-05 7:12 ` Tomasz Figa 2017-07-05 16:22 ` Robin Murphy 2017-07-05 16:22 ` Robin Murphy 2017-07-06 2:25 ` Tomasz Figa 2017-07-06 2:25 ` Tomasz Figa 2017-07-06 11:09 ` Robin Murphy 2017-07-06 11:09 ` Robin Murphy 2017-07-06 14:10 ` Christoph Hellwig 2017-07-06 14:10 ` Christoph Hellwig 2017-07-06 14:17 ` Tomasz Figa 2017-07-06 14:24 ` Tomasz Figa 2017-07-06 14:24 ` Tomasz Figa 2017-07-06 14:35 ` Arnd Bergmann 2017-07-06 14:41 ` Tomasz Figa 2017-07-05 7:12 ` [RFC PATCH 5/5] iommu/dma: Add iommu_dma_cleanup() Tomasz Figa 2017-07-05 7:12 ` Tomasz Figa
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to='CAAFQd5DijKbNJ-8wHh=+2Z2y1nSF-LC8R+d+NktTRF4iQqPsrA@mail.gmail.com' \ --to=tfiga@chromium.org \ --cc=arnd@arndb.de \ --cc=egtvedt@samfundet.no \ --cc=gregkh@linuxfoundation.org \ --cc=hch@lst.de \ --cc=iommu@lists.linux-foundation.org \ --cc=joro@8bytes.org \ --cc=krzk@kernel.org \ --cc=linux-kernel@vger.kernel.org \ --cc=m.szyprowski@samsung.com \ --cc=mitchelh@codeaurora.org \ --cc=robin.murphy@arm.com \ --cc=vgupta@synopsys.com \ --cc=will.deacon@arm.com \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.