| From: Arnd Bergmann <arnd@arndb.de> |
| Subject: microblaze: mark flush_dcache_folio() inline |
| Date: Thu, 10 Aug 2023 16:19:26 +0200 |
| |
| The newly added flush_dcache_folio() causes a harmless warning that turns |
| into a build failure with CONFIG_WERROR: |
| |
| arch/microblaze/include/asm/cacheflush.h:77:13: error: 'flush_dcache_folio' defined but not used [-Werror=unused-function] |
| |
| Mark it as inline to avoid this. |
| |
| Link: https://lkml.kernel.org/r/20230810141947.1236730-9-arnd@kernel.org |
| Fixes: 1330c94f53996 ("microblaze: implement the new page table range API") |
| Signed-off-by: Arnd Bergmann <arnd@arndb.de> |
| Acked-by: Michal Simek <michal.simek@amd.com> |
| Cc: Matthew Wilcox <willy@infradead.org> |
| Signed-off-by: Andrew Morton <akpm@linux-foundation.org> |
| --- |
| |
| arch/microblaze/include/asm/cacheflush.h | 2 +- |
| 1 file changed, 1 insertion(+), 1 deletion(-) |
| |
| --- a/arch/microblaze/include/asm/cacheflush.h~microblaze-implement-the-new-page-table-range-api-fix |
| +++ a/arch/microblaze/include/asm/cacheflush.h |
| @@ -74,7 +74,7 @@ do { \ |
| flush_dcache_range((unsigned) (addr), (unsigned) (addr) + PAGE_SIZE); \ |
| } while (0); |
| |
| -static void flush_dcache_folio(struct folio *folio) |
| +static inline void flush_dcache_folio(struct folio *folio) |
| { |
| unsigned long addr = folio_pfn(folio) << PAGE_SHIFT; |
| |
| _ |