cacheflush.h: Add forward declaration for struct folio
authorHerbert Xu <herbert@gondor.apana.org.au>
Wed, 23 Mar 2022 03:35:10 +0000 (15:35 +1200)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 23 Mar 2022 17:11:03 +0000 (10:11 -0700)
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: 522a0032af00 ("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>
include/linux/cacheflush.h

index fef8b607f97e28b4c6390c6113a3f6633184c438..a6189d21f2ba1a4daecd49fa751fceddc1d821af 100644 (file)
@@ -4,6 +4,8 @@
 
 #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);