]> Git Repo - linux.git/commitdiff
cacheflush.h: Add forward declaration for struct folio
authorHerbert Xu <[email protected]>
Wed, 23 Mar 2022 03:35:10 +0000 (15:35 +1200)
committerLinus Torvalds <[email protected]>
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 <[email protected]>
Fixes: 522a0032af00 ("Add linux/cacheflush.h")
Signed-off-by: Herbert Xu <[email protected]>
Reviewed-by: Matthew Wilcox (Oracle) <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
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);
This page took 0.04696 seconds and 4 git commands to generate.