Skip to content

Commit 30d024b

Browse files
herbertxtorvalds
authored andcommitted
cacheflush.h: Add forward declaration for struct folio
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: 522a003 ("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>
1 parent 6b1f86f commit 30d024b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

include/linux/cacheflush.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44

55
#include <asm/cacheflush.h>
66

7+
struct folio;
8+
79
#if ARCH_IMPLEMENTS_FLUSH_DCACHE_PAGE
810
#ifndef ARCH_IMPLEMENTS_FLUSH_DCACHE_FOLIO
911
void flush_dcache_folio(struct folio *folio);

0 commit comments

Comments
 (0)