Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

csky: abiv2: adapt to new folio flags field

Recent changes require the raw folio flags to be accessed via ".f". The
merge commit introducing this change adapted most architecture code but
forgot the csky abiv2.

[rppt@kernel.org: add fix for arch/csky/abiv2/cacheflush.c]
Link: https://lkml.kernel.org/r/aPCE238oxAB9QcZa@kernel.org
Fixes: 53fbef56e07d ("mm: introduce memdesc_flags_t")
Signed-off-by: Thomas Weißschuh <thomas.weissschuh@linutronix.de>
Signed-off-by: Mike Rapoport (Microsoft) <rppt@kernel.org>
Acked-by: Guo Ren <guoren@kernel.org>
Acked-by: Zi Yan <ziy@nvidia.com>
Cc: Guo Ren <guoren@kernel.org>
Cc: Matthew Wilcox (Oracle) <willy@infradead.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>

authored by

Thomas Weißschuh and committed by
Andrew Morton
9aa12167 7eca961d

+3 -3
+1 -1
arch/csky/abiv2/cacheflush.c
··· 21 21 22 22 folio = page_folio(pfn_to_page(pfn)); 23 23 24 - if (test_and_set_bit(PG_dcache_clean, &folio->flags)) 24 + if (test_and_set_bit(PG_dcache_clean, &folio->flags.f)) 25 25 return; 26 26 27 27 icache_inv_range(address, address + nr*PAGE_SIZE);
+2 -2
arch/csky/abiv2/inc/abi/cacheflush.h
··· 20 20 21 21 static inline void flush_dcache_folio(struct folio *folio) 22 22 { 23 - if (test_bit(PG_dcache_clean, &folio->flags)) 24 - clear_bit(PG_dcache_clean, &folio->flags); 23 + if (test_bit(PG_dcache_clean, &folio->flags.f)) 24 + clear_bit(PG_dcache_clean, &folio->flags.f); 25 25 } 26 26 #define flush_dcache_folio flush_dcache_folio 27 27