forked from mirrors/linux
		
	 30d024b505
			
		
	
	
		30d024b505
		
	
	
	
	
		
			
			The struct folio is not declared in cacheflush.h so we need to provide
a forward declaration as otherwise users of this header file may get
warnings.
Reported-by: Guenter Roeck <linux@roeck-us.net>
Fixes: 522a0032af ("Add linux/cacheflush.h")
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Reviewed-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
		
	
			
		
			
				
	
	
		
			20 lines
		
	
	
	
		
			469 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			20 lines
		
	
	
	
		
			469 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 ARCH_IMPLEMENTS_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
 | |
| #endif /* ARCH_IMPLEMENTS_FLUSH_DCACHE_PAGE */
 | |
| 
 | |
| #endif /* _LINUX_CACHEFLUSH_H */
 |