3d6f126b15
This function has a __weak definition and an override that is only used on freescale powerpc chips. The powerpc definition however does not see the declaration that is in a .c file: arch/powerpc/kernel/dma-mask.c:7:6: error: no previous prototype for 'arch_dma_set_mask' [-Werror=missing-prototypes] Move it into the linux/dma-map-ops.h header where the other arch_dma_* functions are declared. Signed-off-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Christoph Hellwig <hch@lst.de>
14 lines
310 B
C
14 lines
310 B
C
// SPDX-License-Identifier: GPL-2.0
|
|
|
|
#include <linux/dma-mapping.h>
|
|
#include <linux/dma-map-ops.h>
|
|
#include <linux/export.h>
|
|
#include <asm/machdep.h>
|
|
|
|
void arch_dma_set_mask(struct device *dev, u64 dma_mask)
|
|
{
|
|
if (ppc_md.dma_set_mask)
|
|
ppc_md.dma_set_mask(dev, dma_mask);
|
|
}
|
|
EXPORT_SYMBOL(arch_dma_set_mask);
|