Merge tag 'dma-mapping-5.9' of git://git.infradead.org/users/hch/dma-mapping
Pull dma-mapping updates from Christoph Hellwig: - make support for dma_ops optional - move more code out of line - add generic support for a dma_ops bypass mode - misc cleanups * tag 'dma-mapping-5.9' of git://git.infradead.org/users/hch/dma-mapping: dma-contiguous: cleanup dma_alloc_contiguous dma-debug: use named initializers for dir2name powerpc: use the generic dma_ops_bypass mode dma-mapping: add a dma_ops_bypass flag to struct device dma-mapping: make support for dma ops optional dma-mapping: inline the fast path dma-direct calls dma-mapping: move the remaining DMA API calls out of line
This commit is contained in:
@@ -144,8 +144,12 @@ static const char *type2name[] = {
|
||||
[dma_debug_resource] = "resource",
|
||||
};
|
||||
|
||||
static const char *dir2name[4] = { "DMA_BIDIRECTIONAL", "DMA_TO_DEVICE",
|
||||
"DMA_FROM_DEVICE", "DMA_NONE" };
|
||||
static const char *dir2name[] = {
|
||||
[DMA_BIDIRECTIONAL] = "DMA_BIDIRECTIONAL",
|
||||
[DMA_TO_DEVICE] = "DMA_TO_DEVICE",
|
||||
[DMA_FROM_DEVICE] = "DMA_FROM_DEVICE",
|
||||
[DMA_NONE] = "DMA_NONE",
|
||||
};
|
||||
|
||||
/*
|
||||
* The access to some variables in this macro is racy. We can't use atomic_t
|
||||
|
||||
Reference in New Issue
Block a user