[PATCH] dma-coherent: export dma_[alloc|release]_from_coherent methods

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Ingo Molnar
Date: Wednesday, August 20, 2008 - 3:18 am

From ed0a6445788eed1fa836442730d8fe8ab1086629 Mon Sep 17 00:00:00 2001
From: Ingo Molnar <mingo@elte.hu>
Date: Wed, 20 Aug 2008 12:16:09 +0200
Subject: [PATCH] dma-coherent: export dma_[alloc|release]_from_coherent methods

fixes modular builds:

  ERROR: "dma_alloc_from_coherent" [sound/core/snd-page-alloc.ko] undefined!
  ERROR: "dma_release_from_coherent" [sound/core/snd-page-alloc.ko] undefined!

Signed-off-by: Ingo Molnar <mingo@elte.hu>
---
 kernel/dma-coherent.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/kernel/dma-coherent.c b/kernel/dma-coherent.c
index c1d4d5b..f013a0c 100644
--- a/kernel/dma-coherent.c
+++ b/kernel/dma-coherent.c
@@ -124,6 +124,7 @@ int dma_alloc_from_coherent(struct device *dev, ssize_t size,
 	}
 	return (mem != NULL);
 }
+EXPORT_SYMBOL(dma_alloc_from_coherent);
 
 /**
  * dma_release_from_coherent() - try to free the memory allocated from per-device coherent memory pool
@@ -151,3 +152,4 @@ int dma_release_from_coherent(struct device *dev, int order, void *vaddr)
 	}
 	return 0;
 }
+EXPORT_SYMBOL(dma_release_from_coherent);
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH 0/8] x86 dma_*_coherent rework patchset v2, Joerg Roedel, (Tue Aug 19, 7:32 am)
[PATCH 6/8] x86: cleanup dma_*_coherent functions, Joerg Roedel, (Tue Aug 19, 7:32 am)
Re: [PATCH 0/8] x86 dma_*_coherent rework patchset v2, Ingo Molnar, (Wed Aug 20, 2:46 am)
[PATCH] dma-coherent: export dma_[alloc|release]_from_cohe ..., Ingo Molnar, (Wed Aug 20, 3:18 am)
Re: [PATCH 0/8] x86 dma_*_coherent rework patchset v2, Jesse Barnes, (Wed Aug 20, 10:39 am)
Re: [PATCH 0/8] x86 dma_*_coherent rework patchset v2, Ingo Molnar, (Thu Aug 21, 5:00 am)
Re: [PATCH 0/8] x86 dma_*_coherent rework patchset v2, FUJITA Tomonori, (Thu Aug 21, 7:16 am)
Re: [PATCH 0/8] x86 dma_*_coherent rework patchset v2, FUJITA Tomonori, (Thu Aug 21, 7:16 am)
Re: [PATCH 0/8] x86 dma_*_coherent rework patchset v2, Jesse Barnes, (Thu Aug 21, 8:07 am)
Re: [PATCH 0/8] x86 dma_*_coherent rework patchset v2, FUJITA Tomonori, (Thu Aug 21, 8:12 am)
Re: [PATCH 0/8] x86 dma_*_coherent rework patchset v2, Joerg Roedel, (Thu Aug 21, 8:20 am)
Re: [PATCH 0/8] x86 dma_*_coherent rework patchset v2, Ingo Molnar, (Thu Aug 21, 11:44 pm)
Re: [PATCH 0/8] x86 dma_*_coherent rework patchset v2, FUJITA Tomonori, (Thu Aug 21, 11:57 pm)
Re: [PATCH 0/8] x86 dma_*_coherent rework patchset v2, Ingo Molnar, (Fri Aug 22, 12:04 am)
Re: [PATCH 0/8] x86 dma_*_coherent rework patchset v2, Ingo Molnar, (Fri Aug 22, 12:09 am)
Re: [PATCH 0/8] x86 dma_*_coherent rework patchset v2, FUJITA Tomonori, (Fri Aug 22, 12:29 am)
Re: [PATCH 0/8] x86 dma_*_coherent rework patchset v2, Ingo Molnar, (Fri Aug 22, 1:23 am)