linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v8 09/14] cma: export cma_alloc() and cma_release()
       [not found] <20250502100049.1746335-1-jens.wiklander@linaro.org>
@ 2025-05-02  9:59 ` Jens Wiklander
  2025-05-02 15:49   ` Matthew Wilcox
  0 siblings, 1 reply; 3+ messages in thread
From: Jens Wiklander @ 2025-05-02  9:59 UTC (permalink / raw)
  To: linux-kernel, linux-media, dri-devel, linaro-mm-sig, op-tee,
	linux-arm-kernel
  Cc: Olivier Masse, Thierry Reding, Yong Wu, Sumit Semwal,
	Benjamin Gaignard, Brian Starkey, John Stultz, T . J . Mercier,
	Christian König, Sumit Garg, Matthias Brugger,
	AngeloGioacchino Del Regno, azarrabi, Simona Vetter,
	Daniel Stone, Rouven Czerwinski, Jens Wiklander, Andrew Morton,
	linux-mm

Export the two functions cma_alloc() and cma_release().

Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: linux-mm@kvack.org
Cc: linux-kernel@vger.kernel.org
Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
---
 mm/cma.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/mm/cma.c b/mm/cma.c
index 15632939f20a..c60901e73a26 100644
--- a/mm/cma.c
+++ b/mm/cma.c
@@ -915,6 +915,7 @@ struct page *cma_alloc(struct cma *cma, unsigned long count,
 {
 	return __cma_alloc(cma, count, align, GFP_KERNEL | (no_warn ? __GFP_NOWARN : 0));
 }
+EXPORT_SYMBOL(cma_alloc);
 
 struct folio *cma_alloc_folio(struct cma *cma, int order, gfp_t gfp)
 {
@@ -1002,6 +1003,7 @@ bool cma_release(struct cma *cma, const struct page *pages,
 
 	return true;
 }
+EXPORT_SYMBOL(cma_release);
 
 bool cma_free_folio(struct cma *cma, const struct folio *folio)
 {
-- 
2.43.0



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH v8 09/14] cma: export cma_alloc() and cma_release()
  2025-05-02  9:59 ` [PATCH v8 09/14] cma: export cma_alloc() and cma_release() Jens Wiklander
@ 2025-05-02 15:49   ` Matthew Wilcox
  2025-05-05 11:38     ` Jens Wiklander
  0 siblings, 1 reply; 3+ messages in thread
From: Matthew Wilcox @ 2025-05-02 15:49 UTC (permalink / raw)
  To: Jens Wiklander
  Cc: linux-kernel, linux-media, dri-devel, linaro-mm-sig, op-tee,
	linux-arm-kernel, Olivier Masse, Thierry Reding, Yong Wu,
	Sumit Semwal, Benjamin Gaignard, Brian Starkey, John Stultz,
	T . J . Mercier, Christian König, Sumit Garg,
	Matthias Brugger, AngeloGioacchino Del Regno, azarrabi,
	Simona Vetter, Daniel Stone, Rouven Czerwinski, Andrew Morton,
	linux-mm

On Fri, May 02, 2025 at 11:59:23AM +0200, Jens Wiklander wrote:
> Export the two functions cma_alloc() and cma_release().

Why?  This is clearly part of a larger series, but you've given those of
us who are subscribed to linux-mm absolutely no information about why
you want to do this.


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH v8 09/14] cma: export cma_alloc() and cma_release()
  2025-05-02 15:49   ` Matthew Wilcox
@ 2025-05-05 11:38     ` Jens Wiklander
  0 siblings, 0 replies; 3+ messages in thread
From: Jens Wiklander @ 2025-05-05 11:38 UTC (permalink / raw)
  To: Matthew Wilcox
  Cc: linux-kernel, linux-media, dri-devel, linaro-mm-sig, op-tee,
	linux-arm-kernel, Olivier Masse, Thierry Reding, Yong Wu,
	Sumit Semwal, Benjamin Gaignard, Brian Starkey, John Stultz,
	T . J . Mercier, Christian König, Sumit Garg,
	Matthias Brugger, AngeloGioacchino Del Regno, azarrabi,
	Simona Vetter, Daniel Stone, Rouven Czerwinski, Andrew Morton,
	linux-mm

Hi,

On Fri, May 2, 2025 at 5:50 PM Matthew Wilcox <willy@infradead.org> wrote:
>
> On Fri, May 02, 2025 at 11:59:23AM +0200, Jens Wiklander wrote:
> > Export the two functions cma_alloc() and cma_release().
>
> Why?  This is clearly part of a larger series, but you've given those of
> us who are subscribed to linux-mm absolutely no information about why
> you want to do this.

I'm sorry, it's part of this patch: set
https://lore.kernel.org/lkml/20250502100049.1746335-1-jens.wiklander@linaro.org/
 I'll CC a bit more in the next version of the patch set.

It's needed if the TEE subsystem is built as a load module.

Thanks,
Jens


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2025-05-05 11:38 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <20250502100049.1746335-1-jens.wiklander@linaro.org>
2025-05-02  9:59 ` [PATCH v8 09/14] cma: export cma_alloc() and cma_release() Jens Wiklander
2025-05-02 15:49   ` Matthew Wilcox
2025-05-05 11:38     ` Jens Wiklander

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox