]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
mm: constify __dump_folio() arguments
authorMatthew Wilcox (Oracle) <willy@infradead.org>
Thu, 6 Nov 2025 20:35:25 +0000 (20:35 +0000)
committerAndrew Morton <akpm@linux-foundation.org>
Thu, 20 Nov 2025 21:43:57 +0000 (13:43 -0800)
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>
mm/debug.c

index d860864063be9296d8a4d21d30279f14bcf9cc2a..77fa8fe1d6414a25ec3d8b4fdd4fd7d16056a83e 100644 (file)
@@ -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);