mirror of
https://github.com/lkl/linux.git
synced 2025-12-19 08:03:01 +09:00
mm: remove ARCH_IMPLEMENTS_FLUSH_DCACHE_FOLIO
Current best practice is to reuse the name of the function as a define to indicate that the function is implemented by the architecture. Link: https://lkml.kernel.org/r/20230802151406.3735276-6-willy@infradead.org Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org> Acked-by: Mike Rapoport (IBM) <rppt@kernel.org> Reviewed-by: Anshuman Khandual <anshuman.khandual@arm.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
This commit is contained in:
committed by
Andrew Morton
parent
bc60abfbe6
commit
29d26f1215
@@ -7,14 +7,14 @@
|
||||
struct folio;
|
||||
|
||||
#if ARCH_IMPLEMENTS_FLUSH_DCACHE_PAGE
|
||||
#ifndef ARCH_IMPLEMENTS_FLUSH_DCACHE_FOLIO
|
||||
#ifndef flush_dcache_folio
|
||||
void flush_dcache_folio(struct folio *folio);
|
||||
#endif
|
||||
#else
|
||||
static inline void flush_dcache_folio(struct folio *folio)
|
||||
{
|
||||
}
|
||||
#define ARCH_IMPLEMENTS_FLUSH_DCACHE_FOLIO 0
|
||||
#define flush_dcache_folio flush_dcache_folio
|
||||
#endif /* ARCH_IMPLEMENTS_FLUSH_DCACHE_PAGE */
|
||||
|
||||
#endif /* _LINUX_CACHEFLUSH_H */
|
||||
|
||||
Reference in New Issue
Block a user