Skip to contentSkip to conversation

m68k: dma: remove unnecessary include of asm/cacheflush.h

PATCH In review Wan Jiabing 2 participants 2 messages May 10, 2021 m68k architecture

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 m68k: dma: remove unnecessary include of asm/cacheflush.h

In commit ca15ca406f660 ("mm: remove unneeded includes of <asm/pgalloc.h>"), asm/cacheflush.h independent on the MACRO was included at line 18. The include here is unnecessary. Remove it.

---
 arch/m68k/kernel/dma.c | 3 ---
 1 file changed, 3 deletions(-)
arch/m68k/kernel/dma.c +0 -3
index 1c1b875fadc1..2e192a5df949 100644
@@ -34,9 +34,6 @@ pgprot_t pgprot_dmacoherent(pgprot_t prot)
 	return prot;
 }
 #else
-
-#include <asm/cacheflush.h>
-
 void *arch_dma_alloc(struct device *dev, size_t size, dma_addr_t *dma_handle,
 		gfp_t gfp, unsigned long attrs)
 {
Signature · 1 line
2.20.1
maintainer Reviewed-by on v1 1/1
#1 lore raw
Quoted 5 lines · Wan Jiabing

In commit ca15ca406f660 ("mm: remove unneeded includes of <asm/pgalloc.h>"), asm/cacheflush.h independent on the MACRO was included at line 18. The include here is unnecessary. Remove it.

i.e. will queue in the m68k for-v5.14 branch.

Gr{oetje,eeting}s,

Geert

Signature · 5 lines
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
                                -- Linus Torvalds