Skip to content

Commit 259886a

Browse files
Jeff GarzikLinus Torvalds
authored andcommitted
[PATCH] x86-64: define dma noncoherent API functions
x86-64 is missing these: Signed-off-by: Jeff Garzik <jeff@garzik.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent 7225394 commit 259886a

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

‎include/asm-x86_64/dma-mapping.h‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,9 @@ static inline int dma_mapping_error(dma_addr_t dma_addr)
6363
return (dma_addr == bad_dma_address);
6464
}
6565

66+
#define dma_alloc_noncoherent(d, s, h, f) dma_alloc_coherent(d, s, h, f)
67+
#define dma_free_noncoherent(d, s, v, h) dma_free_coherent(d, s, v, h)
68+
6669
extern void *dma_alloc_coherent(struct device *dev, size_t size,
6770
dma_addr_t *dma_handle, gfp_t gfp);
6871
extern void dma_free_coherent(struct device *dev, size_t size, void *vaddr,

0 commit comments

Comments
 (0)