From: Brendan Jackman Date: Sun, 17 May 2026 23:37:05 +0000 (+0000) Subject: mm/page_alloc: drop a misleading __always_inline X-Git-Url: http://git.ipfire.org/gitweb/?a=commitdiff_plain;h=d231522bf07287c5bcf7c6af6960f476663324b5;p=thirdparty%2Flinux.git mm/page_alloc: drop a misleading __always_inline get_pfnblock_migratetype() is called from outside page_alloc.c, so it cannot always be inlined. Remove the annotation to avoid misleading readers. At least in my minimal config, with GCC, this doesn't change mm/page_alloc.o at all. Link: https://lore.kernel.org/all/20260517-b4-drop-always-inline-v1-1-97b90930e8b8@google.com/ Signed-off-by: Brendan Jackman Suggested-by: Vlastimil Babka Link: https://lore.kernel.org/all/016c8bef-57ef-44ef-bf60-86dbfd368dcd@kernel.org/ Acked-by: Johannes Weiner Reviewed-by: SeongJae Park Reviewed-by: Vishal Moola Reviewed-by: Vlastimil Babka (SUSE) Cc: Michal Hocko Cc: Suren Baghdasaryan Cc: Zi Yan Signed-off-by: Andrew Morton --- diff --git a/mm/page_alloc.c b/mm/page_alloc.c index dc09a2520313..d7b7f9504bd8 100644 --- a/mm/page_alloc.c +++ b/mm/page_alloc.c @@ -434,7 +434,7 @@ bool get_pfnblock_bit(const struct page *page, unsigned long pfn, * Use get_pfnblock_migratetype() if caller already has both @page and @pfn * to save a call to page_to_pfn(). */ -__always_inline enum migratetype +enum migratetype get_pfnblock_migratetype(const struct page *page, unsigned long pfn) { unsigned long mask = PAGEBLOCK_MIGRATETYPE_MASK | PAGEBLOCK_ISO_MASK;