]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
mm/page_owner: fix %pGp format specifier argument type
authorZhen Ni <zhen.ni@easystack.cn>
Tue, 14 Apr 2026 07:58:13 +0000 (15:58 +0800)
committerAndrew Morton <akpm@linux-foundation.org>
Fri, 29 May 2026 04:04:48 +0000 (21:04 -0700)
The %pGp format specifier expects an argument of type 'unsigned long *',
but page->flags is now of type 'memdesc_flags_t' (a struct containing an
unsigned long member 'f') after the introduction of memdesc_flags_t.

Fix the type mismatch by passing &page->flags.f instead of &page->flags,
which matches the expected type.

Link: https://lore.kernel.org/20260414075813.3425968-1-zhen.ni@easystack.cn
Fixes: 53fbef56e07d ("mm: introduce memdesc_flags_t")
Signed-off-by: Zhen Ni <zhen.ni@easystack.cn>
Acked-by: Vlastimil Babka (SUSE) <vbabka@kernel.org>
Cc: Brendan Jackman <jackmanb@google.com>
Cc: Johannes Weiner <hannes@cmpxchg.org>
Cc: Michal Hocko <mhocko@suse.com>
Cc: Suren Baghdasaryan <surenb@google.com>
Cc: Zi Yan <ziy@nvidia.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/page_owner.c

index 8178e0be557f878059e13aa9fb22a40637c811e0..2dddcb6510aa1eecde19c6c0cb7fe6c6adf05530 100644 (file)
@@ -573,7 +573,7 @@ print_page_owner(char __user *buf, size_t count, unsigned long pfn,
                        migratetype_names[page_mt],
                        pfn >> pageblock_order,
                        migratetype_names[pageblock_mt],
-                       &page->flags);
+                       &page->flags.f);
 
        ret += stack_depot_snprint(handle, kbuf + ret, count - ret, 0);
        if (ret >= count)