mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-01-11 17:10:13 +00:00
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>
This commit is contained in:
parent
20605eb5bb
commit
98be155451
@ -67,7 +67,7 @@ static const char *page_type_name(unsigned int page_type)
|
|||||||
return page_type_names[i];
|
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)
|
unsigned long pfn, unsigned long idx)
|
||||||
{
|
{
|
||||||
struct address_space *mapping = folio_mapping(folio);
|
struct address_space *mapping = folio_mapping(folio);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user