Add linux/cacheflush.h
authorMatthew Wilcox (Oracle) <willy@infradead.org>
Sat, 6 Nov 2021 21:13:35 +0000 (17:13 -0400)
committerMatthew Wilcox (Oracle) <willy@infradead.org>
Wed, 17 Nov 2021 15:36:15 +0000 (10:36 -0500)
commit522a0032af005502507f5f81ae64fdcc82b5d068
tree65a151ce6b86fb4290c40bc5d813887fc7228a1d
parent8ab774587903771821b59471cc723bba6d893942
Add linux/cacheflush.h

Many architectures do not include asm-generic/cacheflush.h, so turn
the includes on their head and add linux/cacheflush.h which includes
asm/cacheflush.h.

Move the flush_dcache_folio() declaration from asm-generic/cacheflush.h
to linux/cacheflush.h and change linux/highmem.h to include
linux/cacheflush.h instead of asm/cacheflush.h so that all necessary
places will see flush_dcache_folio().

More functions should have their default implementations moved in the
future, but those are for follow-on patches.  This fixes csky, sparc and
sparc64 which were missed in the commit which added flush_dcache_folio().

Fixes: 08b0b0059bf1 ("mm: Add flush_dcache_folio()")
Suggested-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Acked-by: Geert Uytterhoeven <geert@linux-m68k.org>
12 files changed:
arch/arc/include/asm/cacheflush.h
arch/arm/include/asm/cacheflush.h
arch/m68k/include/asm/cacheflush_mm.h
arch/mips/include/asm/cacheflush.h
arch/nds32/include/asm/cacheflush.h
arch/nios2/include/asm/cacheflush.h
arch/parisc/include/asm/cacheflush.h
arch/sh/include/asm/cacheflush.h
arch/xtensa/include/asm/cacheflush.h
include/asm-generic/cacheflush.h
include/linux/cacheflush.h [new file with mode: 0644]
include/linux/highmem.h