diff options
author | Arnd Bergmann <[email protected]> | 2023-07-27 14:25:42 +0200 |
---|---|---|
committer | Christoph Hellwig <[email protected]> | 2023-07-31 17:54:28 +0200 |
commit | 3d6f126b15d9fd8435455fffc912d976973a7a09 (patch) | |
tree | 5cec53b7672f19c8aab66ab51209fed4edfc32b2 /arch/powerpc/kernel/dma-mask.c | |
parent | 42e584a9856052c3695645d4e3ace767de01dfab (diff) |
dma-mapping: move arch_dma_set_mask() declaration to header
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 <[email protected]>
Signed-off-by: Christoph Hellwig <[email protected]>
Diffstat (limited to 'arch/powerpc/kernel/dma-mask.c')
-rw-r--r-- | arch/powerpc/kernel/dma-mask.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/powerpc/kernel/dma-mask.c b/arch/powerpc/kernel/dma-mask.c index ffbbbc432612..5b07ca7b73aa 100644 --- a/arch/powerpc/kernel/dma-mask.c +++ b/arch/powerpc/kernel/dma-mask.c @@ -1,6 +1,7 @@ // 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> |