mirror of
https://gitee.com/bianbu-linux/linux-6.6
synced 2025-04-24 14:07:52 -04:00
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>
20 lines
454 B
C
20 lines
454 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
#ifndef _LINUX_CACHEFLUSH_H
|
|
#define _LINUX_CACHEFLUSH_H
|
|
|
|
#include <asm/cacheflush.h>
|
|
|
|
struct folio;
|
|
|
|
#if ARCH_IMPLEMENTS_FLUSH_DCACHE_PAGE
|
|
#ifndef flush_dcache_folio
|
|
void flush_dcache_folio(struct folio *folio);
|
|
#endif
|
|
#else
|
|
static inline void flush_dcache_folio(struct folio *folio)
|
|
{
|
|
}
|
|
#define flush_dcache_folio flush_dcache_folio
|
|
#endif /* ARCH_IMPLEMENTS_FLUSH_DCACHE_PAGE */
|
|
|
|
#endif /* _LINUX_CACHEFLUSH_H */
|