Skip to content

Commit

Permalink
Merge tag 'dma-mapping-5.14' of git://git.infradead.org/users/hch/dma…
Browse files Browse the repository at this point in the history
…-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
  • Loading branch information
torvalds committed Jul 2, 2021
2 parents cd3eb7e + 2b4bbc6 commit e72b069
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion kernel/dma/coherent.c
Original file line number Diff line number Diff line change
Expand Up @@ -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).
*
Expand Down
6 changes: 2 additions & 4 deletions kernel/dma/debug.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit e72b069

Please sign in to comment.