Skip to contentSkip to conversation

mm: Constify __dump_folio() arguments

PATCH Applied Matthew Wilcox (Oracle) 1 participant 1 message Nov 6, 2025

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 mm: Constify __dump_folio() arguments

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

---
 mm/debug.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
mm/debug.c +1 -1
index 64ddb0c4b4be..6513c858fe50 100644
@@ -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);
Signature · 1 line
2.47.2