Skip to contentSkip to conversation

dma-debug-add-comment-for-failed-to-check-map-error.patch removed from -mm tree

merged [email protected] 1 participant 1 message Feb 23, 2017

lore
Share & tools
lore

[email protected]

author tree notice Applied
#0 lore raw

The patch titled
Subject: dma-debug: add comment for failed to check map error
has been removed from the -mm tree. Its filename was
dma-debug-add-comment-for-failed-to-check-map-error.patch

This patch was dropped because it was merged into mainline or a subsystem tree

------------------------------------------------------
From: Miles Chen <[email protected]>
Subject: dma-debug: add comment for failed to check map error

Add comment for failure to check a map error to help driver developers.

---

 lib/dma-debug.c |    5 +++++
 1 file changed, 5 insertions(+)
lib/dma-debug.c renamed from lib/dma-debug.c~dma-debug-add-comment-for-failed-to-check-map-error +5 -0
diff -puN lib/dma-debug.c~dma-debug-add-comment-for-failed-to-check-map-error lib/dma-debug.c
@@ -1155,6 +1155,11 @@ static void check_unmap(struct dma_debug
 			   dir2name[ref->direction]);
 	}
 
+	/*
+	 * Drivers should use dma_mapping_error() to check the returned
+	 * addresses of dma_map_single() and dma_map_page().
+	 * If not, print this warning message. See Documentation/DMA-API.txt.
+	 */
 	if (entry->map_err_type == MAP_ERR_NOT_CHECKED) {
 		err_printk(ref->dev, entry,
 			   "DMA-API: device driver failed to check map error"

_

Patches currently in -mm which might be from [email protected] are

mm-cleanups-for-printing-phys_addr_t-and-dma_addr_t.patch checkpatch-update-logfunctions.patch