Re: next: sh: mm/cache-sh4.c:250:51: error: too few arguments to function 'folio_flags'

From: Matthew Wilcox
Date: Thu Mar 28 2024 - 14:48:02 EST


On Thu, Mar 28, 2024 at 11:46:12AM -0700, Andrew Morton wrote:
> --- a/arch/sh/mm/cache-sh4.c~sh-remove-use-of-pg_arch_1-on-individual-pages-fix
> +++ a/arch/sh/mm/cache-sh4.c
> @@ -247,7 +247,7 @@ static void sh4_flush_cache_page(void *a
> * another ASID than the current one.
> */
> map_coherent = (current_cpu_data.dcache.n_aliases &&
> - test_bit(PG_dcache_clean, folio_flags(folio)) &&
> + test_bit(PG_dcache_clean, folio_flags(folio, 0)) &&

Yup.
https://lore.kernel.org/linux-mm/ZgRqLDP7yVCT2dnh@xxxxxxxxxxxxxxxxxxxx/