mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 18:51:56 -04:00
dma-mapping: move dma_default_get_required_mask under ifdef
This avoids a warning on powerpc. Signed-off-by: Christoph Hellwig <[email protected]> Reported-by: Stephen Rothwell <[email protected]>
This commit is contained in:
parent
9d7a224b46
commit
6db37ad7c2
1 changed files with 1 additions and 1 deletions
|
|
@ -1179,6 +1179,7 @@ int __init platform_bus_init(void)
|
|||
return error;
|
||||
}
|
||||
|
||||
#ifndef ARCH_HAS_DMA_GET_REQUIRED_MASK
|
||||
static u64 dma_default_get_required_mask(struct device *dev)
|
||||
{
|
||||
u32 low_totalram = ((max_pfn - 1) << PAGE_SHIFT);
|
||||
|
|
@ -1198,7 +1199,6 @@ static u64 dma_default_get_required_mask(struct device *dev)
|
|||
return mask;
|
||||
}
|
||||
|
||||
#ifndef ARCH_HAS_DMA_GET_REQUIRED_MASK
|
||||
u64 dma_get_required_mask(struct device *dev)
|
||||
{
|
||||
const struct dma_map_ops *ops = get_dma_ops(dev);
|
||||
|
|
|
|||
Loading…
Reference in a new issue