From: Matthew Wilcox (Oracle) Date: Thu, 6 Nov 2025 20:35:25 +0000 (+0000) Subject: mm: constify __dump_folio() arguments X-Git-Tag: v6.19-rc1~112^2~143 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=98be155451eb2aa4b0413b85c3f95e239de3636f;p=thirdparty%2Flinux.git 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) Cc: David Hildenbrand Cc: Oscar Salvador Signed-off-by: Andrew Morton --- diff --git a/mm/debug.c b/mm/debug.c index d860864063be9..77fa8fe1d6414 100644 --- a/mm/debug.c +++ b/mm/debug.c @@ -67,7 +67,7 @@ static const char *page_type_name(unsigned int page_type) return page_type_names[i]; } -static void __dump_folio(struct folio *folio, struct page *page, +static void __dump_folio(const struct folio *folio, const struct page *page, unsigned long pfn, unsigned long idx) { struct address_space *mapping = folio_mapping(folio);