linux-next: manual merge of the iommu tree with the kmemcheck tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Ingo,

Today's linux-next merge of the iommu tree got a conflict in
arch/x86/include/asm/dma-mapping.h between commit
19dd5283c3b1f3f8abab705c23658403910dfe23 ("kmemcheck: add DMA hooks")
from the kmemcheck tree and commit
d7dff84053524186b139342ac66a4160ce6bb517 ("x86: remove map_single and
unmap_single in struct dma_mapping_ops") from the iommu tree.

I fixed it up (see below) and can carry the fix as necessary.
-- 
Cheers,
Stephen Rothwell                    sfr@xxxxxxxxxxxxxxxx
http://www.canb.auug.org.au/~sfr/

diff --cc arch/x86/include/asm/dma-mapping.h
index e93265c,5a34780..0000000
--- a/arch/x86/include/asm/dma-mapping.h
+++ b/arch/x86/include/asm/dma-mapping.h
@@@ -6,8 -6,8 +6,9 @@@
   * documentation.
   */
  
 +#include <linux/kmemcheck.h>
  #include <linux/scatterlist.h>
+ #include <linux/dma-attrs.h>
  #include <asm/io.h>
  #include <asm/swiotlb.h>
  #include <asm-generic/dma-coherent.h>
@@@ -91,13 -53,14 +54,15 @@@ extern void *dma_generic_alloc_coherent
  
  static inline dma_addr_t
  dma_map_single(struct device *hwdev, void *ptr, size_t size,
- 	       int direction)
+ 	       enum dma_data_direction dir)
  {
- 	struct dma_mapping_ops *ops = get_dma_ops(hwdev);
+ 	struct dma_map_ops *ops = get_dma_ops(hwdev);
  
- 	BUG_ON(!valid_dma_direction(direction));
+ 	BUG_ON(!valid_dma_direction(dir));
 +	kmemcheck_mark_initialized(ptr, size);
- 	return ops->map_single(hwdev, virt_to_phys(ptr), size, direction);
+ 	return ops->map_page(hwdev, virt_to_page(ptr),
+ 			     (unsigned long)ptr & ~PAGE_MASK, size,
+ 			     dir, NULL);
  }
  
  static inline void
--
To unsubscribe from this list: send the line "unsubscribe linux-next" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel]     [Linux USB Development]     [Yosemite News]     [Linux SCSI]

  Powered by Linux