mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-11 13:27:06 +09:00
Merge tag 'dma-mapping-5.14' of git://git.infradead.org/users/hch/dma-mapping
Pull dma-mapping updates from Christoph Hellwig: - a trivivial whitespace fix (Zhen Lei) - report -EEXIST errors in add_dma_entry (Hamza Mahfooz) * tag 'dma-mapping-5.14' of git://git.infradead.org/users/hch/dma-mapping: dma-debug: report -EEXIST errors in add_dma_entry dma-mapping: remove a trailing space
This commit is contained in:
@@ -111,7 +111,7 @@ static int dma_assign_coherent_memory(struct device *dev,
|
||||
* Declare a region of memory to be handed out by dma_alloc_coherent() when it
|
||||
* is asked for coherent memory for this device. This shall only be used
|
||||
* from platform code, usually based on the device tree description.
|
||||
*
|
||||
*
|
||||
* phys_addr is the CPU physical address to which the memory is currently
|
||||
* assigned (this will be ioremapped so the CPU can access the region).
|
||||
*
|
||||
|
||||
@@ -566,11 +566,9 @@ static void add_dma_entry(struct dma_debug_entry *entry)
|
||||
if (rc == -ENOMEM) {
|
||||
pr_err("cacheline tracking ENOMEM, dma-debug disabled\n");
|
||||
global_disable = true;
|
||||
} else if (rc == -EEXIST) {
|
||||
pr_err("cacheline tracking EEXIST, overlapping mappings aren't supported\n");
|
||||
}
|
||||
|
||||
/* TODO: report -EEXIST errors here as overlapping mappings are
|
||||
* not supported by the DMA API
|
||||
*/
|
||||
}
|
||||
|
||||
static int dma_debug_create_entries(gfp_t gfp)
|
||||
|
||||
Reference in New Issue
Block a user