diff options
| author | Jiri Kosina <jkosina@suse.cz> | 2017-05-02 05:02:41 -0400 | 
|---|---|---|
| committer | Jiri Kosina <jkosina@suse.cz> | 2017-05-02 05:02:41 -0400 | 
| commit | 4d6ca227c768b50b05cf183974b40abe444e9d0c (patch) | |
| tree | bf953d8e895281053548b9967a2c4b58d641df00 /lib/dma-debug.c | |
| parent | 800f3eef8ebc1264e9c135bfa892c8ae41fa4792 (diff) | |
| parent | af22a610bc38508d5ea760507d31be6b6983dfa8 (diff) | |
Merge branch 'for-4.12/asus' into for-linus
Diffstat (limited to 'lib/dma-debug.c')
| -rw-r--r-- | lib/dma-debug.c | 7 | 
1 files changed, 7 insertions, 0 deletions
| diff --git a/lib/dma-debug.c b/lib/dma-debug.c index 8971370bfb16..b157b46cc9a6 100644 --- a/lib/dma-debug.c +++ b/lib/dma-debug.c | |||
| @@ -17,8 +17,10 @@ | |||
| 17 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | 17 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | 
| 18 | */ | 18 | */ | 
| 19 | 19 | ||
| 20 | #include <linux/sched/task_stack.h> | ||
| 20 | #include <linux/scatterlist.h> | 21 | #include <linux/scatterlist.h> | 
| 21 | #include <linux/dma-mapping.h> | 22 | #include <linux/dma-mapping.h> | 
| 23 | #include <linux/sched/task.h> | ||
| 22 | #include <linux/stacktrace.h> | 24 | #include <linux/stacktrace.h> | 
| 23 | #include <linux/dma-debug.h> | 25 | #include <linux/dma-debug.h> | 
| 24 | #include <linux/spinlock.h> | 26 | #include <linux/spinlock.h> | 
| @@ -1155,6 +1157,11 @@ static void check_unmap(struct dma_debug_entry *ref) | |||
| 1155 | dir2name[ref->direction]); | 1157 | dir2name[ref->direction]); | 
| 1156 | } | 1158 | } | 
| 1157 | 1159 | ||
| 1160 | /* | ||
| 1161 | * Drivers should use dma_mapping_error() to check the returned | ||
| 1162 | * addresses of dma_map_single() and dma_map_page(). | ||
| 1163 | * If not, print this warning message. See Documentation/DMA-API.txt. | ||
| 1164 | */ | ||
| 1158 | if (entry->map_err_type == MAP_ERR_NOT_CHECKED) { | 1165 | if (entry->map_err_type == MAP_ERR_NOT_CHECKED) { | 
| 1159 | err_printk(ref->dev, entry, | 1166 | err_printk(ref->dev, entry, | 
| 1160 | "DMA-API: device driver failed to check map error" | 1167 | "DMA-API: device driver failed to check map error" | 
