提交 cb97201c 编写于 作者: S Sowmini Varadhan 提交者: David S. Miller

iommu-common: Fix PARISC compile-time warnings

Fixes warnings due to
- no DMA_ERROR_CODE on PARISC,
- sizeof (unsigned long) == 4 bytes on PARISC.
Signed-off-by: NSowmini Varadhan <sowmini.varadhan@oracle.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 a83f5d6a
...@@ -10,6 +10,10 @@ ...@@ -10,6 +10,10 @@
#include <linux/iommu-common.h> #include <linux/iommu-common.h>
#include <linux/dma-mapping.h> #include <linux/dma-mapping.h>
#ifndef DMA_ERROR_CODE
#define DMA_ERROR_CODE (~(dma_addr_t)0x0)
#endif
#define IOMMU_LARGE_ALLOC 15 #define IOMMU_LARGE_ALLOC 15
/* /*
...@@ -121,7 +125,7 @@ unsigned long iommu_tbl_range_alloc(struct device *dev, ...@@ -121,7 +125,7 @@ unsigned long iommu_tbl_range_alloc(struct device *dev,
boundary_size = ALIGN(dma_get_seg_boundary(dev) + 1, boundary_size = ALIGN(dma_get_seg_boundary(dev) + 1,
1 << iommu->page_table_shift); 1 << iommu->page_table_shift);
else else
boundary_size = ALIGN(1UL << 32, 1 << iommu->page_table_shift); boundary_size = ALIGN(1ULL << 32, 1 << iommu->page_table_shift);
shift = iommu->page_table_map_base >> iommu->page_table_shift; shift = iommu->page_table_map_base >> iommu->page_table_shift;
boundary_size = boundary_size >> iommu->page_table_shift; boundary_size = boundary_size >> iommu->page_table_shift;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册