On Wed, Apr 17, 2024 at 06:09:36PM +0100, Matthew Wilcox (Oracle) wrote: > Add a memcpy_from_folio_le16() which does the byteswapping. > This is now large folio safe and avoids kmap(). This patch is missing: @@ -476,6 +476,7 @@ static inline void memcpy_from_folio_le16(u16 *to, struct folio *folio, do { const __le16 *from = kmap_local_folio(folio, offset); size_t chunk = len; + int i; if (folio_test_highmem(folio) && chunk > PAGE_SIZE - offset_in_page(offset)) I'll send a new version if needed, but I'll wait for other feedback first.