mm: Constify __dump_folio() arguments
Subsystems (2)
PATCH 1/1 mm: Constify __dump_folio() arguments
These arguments aren't modified by the function; mark them as const to help the compiler.
Signed-off-by Matthew Wilcox (Oracle) <[email protected]>
--- mm/debug.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
mm/debug.c +1 -1
@@ -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,struct page *page,unsigned long pfn,unsigned long idx) {struct address_space *mapping =folio_mapping (folio);
Signature · 1 line
2.47.2
Quoted 2 lines · Matthew Wilcox (Oracle)
These arguments aren't modified by the function; mark them as const to help the compiler.
Oops, wrong version.