Skip to content

Commit

Permalink
dma-coherent: export dma_[alloc|release]_from_coherent methods
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Ingo Molnar committed Aug 22, 2008
1 parent 2cd5496 commit a38409f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions kernel/dma-coherent.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -151,3 +152,4 @@ int dma_release_from_coherent(struct device *dev, int order, void *vaddr)
}
return 0;
}
EXPORT_SYMBOL(dma_release_from_coherent);

0 comments on commit a38409f

Please sign in to comment.