• Matthew Wilcox (Oracle)'s avatar
    Add linux/cacheflush.h · 522a0032
    Matthew Wilcox (Oracle) authored
    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: 08b0b005 ("mm: Add flush_dcache_folio()")
    Suggested-by: default avatarChristoph Hellwig <hch@lst.de>
    Signed-off-by: default avatarMatthew Wilcox (Oracle) <willy@infradead.org>
    Acked-by: default avatarGeert Uytterhoeven <geert@linux-m68k.org>
    522a0032
cacheflush.h 1.94 KB