diff options
author | Matthew Wilcox (Oracle) <willy@infradead.org> | 2024-02-27 19:23:32 +0000 |
---|---|---|
committer | Andrew Morton <akpm@linux-foundation.org> | 2024-03-06 13:04:18 -0800 |
commit | b3a3203309c89061452250f7384507787b7badcb (patch) | |
tree | b7180ae0901ec2ecf5ec30d8741b49aed435f837 /mm/debug.c | |
parent | fae7d834c43ccdb9fcecaf4d0f33145d884b3e5c (diff) |
mm: make dump_page() take a const argument
Now that __dump_page() takes a const argument, we can make dump_page()
take a const struct page too.
Link: https://lkml.kernel.org/r/20240227192337.757313-6-willy@infradead.org
Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Reviewed-by: David Hildenbrand <david@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'mm/debug.c')
-rw-r--r-- | mm/debug.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/debug.c b/mm/debug.c index 12fed592c955..c1c1a6a484e4 100644 --- a/mm/debug.c +++ b/mm/debug.c @@ -149,7 +149,7 @@ dump: __dump_folio(foliop, &precise, pfn, idx); } -void dump_page(struct page *page, const char *reason) +void dump_page(const struct page *page, const char *reason) { if (PagePoisoned(page)) pr_warn("page:%p is uninitialized and poisoned", page); |