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.

mm: constify __dump_folio() arguments

These arguments aren't modified by the function; mark them as const to
help the compiler.

Link: https://lkml.kernel.org/r/20251106203526.2368275-1-willy@infradead.org
Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Cc: David Hildenbrand <david@kernel.org>
Cc: Oscar Salvador <osalvador@suse.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>

authored by

Matthew Wilcox (Oracle) and committed by
Andrew Morton
98be1554 20605eb5

+1 -1
+1 -1
mm/debug.c
··· 67 67 return page_type_names[i]; 68 68 } 69 69 70 - static void __dump_folio(struct folio *folio, struct page *page, 70 + static void __dump_folio(const struct folio *folio, const struct page *page, 71 71 unsigned long pfn, unsigned long idx) 72 72 { 73 73 struct address_space *mapping = folio_mapping(folio);