* [PATCH] mm: Constify __dump_folio() arguments
@ 2025-11-06 20:33 Matthew Wilcox (Oracle)
2025-11-06 20:34 ` Matthew Wilcox
0 siblings, 1 reply; 2+ messages in thread
From: Matthew Wilcox (Oracle) @ 2025-11-06 20:33 UTC (permalink / raw)
To: Andrew Morton; +Cc: Matthew Wilcox (Oracle), linux-mm
These arguments aren't modified by the function; mark them as const to
help the compiler.
Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
---
mm/debug.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/mm/debug.c b/mm/debug.c
index 64ddb0c4b4be..81f03e185d29 100644
--- a/mm/debug.c
+++ b/mm/debug.c
@@ -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);
--
2.47.2
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] mm: Constify __dump_folio() arguments
2025-11-06 20:33 [PATCH] mm: Constify __dump_folio() arguments Matthew Wilcox (Oracle)
@ 2025-11-06 20:34 ` Matthew Wilcox
0 siblings, 0 replies; 2+ messages in thread
From: Matthew Wilcox @ 2025-11-06 20:34 UTC (permalink / raw)
To: Andrew Morton; +Cc: linux-mm
On Thu, Nov 06, 2025 at 08:33:39PM +0000, Matthew Wilcox (Oracle) wrote:
> These arguments aren't modified by the function; mark them as const to
> help the compiler.
Oops, wrong version.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2025-11-06 20:34 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-11-06 20:33 [PATCH] mm: Constify __dump_folio() arguments Matthew Wilcox (Oracle)
2025-11-06 20:34 ` Matthew Wilcox
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox