diff options
| author | Huaisheng Ye <yehs1@lenovo.com> | 2018-05-25 01:00:00 -0400 |
|---|---|---|
| committer | Christoph Hellwig <hch@lst.de> | 2018-05-25 05:23:06 -0400 |
| commit | 884571f0de7b02bb784be3a5c870eabce62cdaeb (patch) | |
| tree | 86fd8b6d7ef6cf0d1e22188e9c5d4ad3edd206a7 /include/linux | |
| parent | 78c47830a5cbb5d22dc91819a95af3d5c4bec084 (diff) | |
dma-mapping: remove unused gfp_t parameter to arch_dma_alloc_attrs
Signed-off-by: Huaisheng Ye <yehs1@lenovo.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/dma-mapping.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/dma-mapping.h b/include/linux/dma-mapping.h index 4be070df5fc5..15e4b4e9cc20 100644 --- a/include/linux/dma-mapping.h +++ b/include/linux/dma-mapping.h | |||
| @@ -502,7 +502,7 @@ dma_get_sgtable_attrs(struct device *dev, struct sg_table *sgt, void *cpu_addr, | |||
| 502 | #define dma_get_sgtable(d, t, v, h, s) dma_get_sgtable_attrs(d, t, v, h, s, 0) | 502 | #define dma_get_sgtable(d, t, v, h, s) dma_get_sgtable_attrs(d, t, v, h, s, 0) |
| 503 | 503 | ||
| 504 | #ifndef arch_dma_alloc_attrs | 504 | #ifndef arch_dma_alloc_attrs |
| 505 | #define arch_dma_alloc_attrs(dev, flag) (true) | 505 | #define arch_dma_alloc_attrs(dev) (true) |
| 506 | #endif | 506 | #endif |
| 507 | 507 | ||
| 508 | static inline void *dma_alloc_attrs(struct device *dev, size_t size, | 508 | static inline void *dma_alloc_attrs(struct device *dev, size_t size, |
| @@ -521,7 +521,7 @@ static inline void *dma_alloc_attrs(struct device *dev, size_t size, | |||
| 521 | /* let the implementation decide on the zone to allocate from: */ | 521 | /* let the implementation decide on the zone to allocate from: */ |
| 522 | flag &= ~(__GFP_DMA | __GFP_DMA32 | __GFP_HIGHMEM); | 522 | flag &= ~(__GFP_DMA | __GFP_DMA32 | __GFP_HIGHMEM); |
| 523 | 523 | ||
| 524 | if (!arch_dma_alloc_attrs(&dev, &flag)) | 524 | if (!arch_dma_alloc_attrs(&dev)) |
| 525 | return NULL; | 525 | return NULL; |
| 526 | if (!ops->alloc) | 526 | if (!ops->alloc) |
| 527 | return NULL; | 527 | return NULL; |
