From: Stephen Rothwell Date: Wed, 26 Feb 2025 04:54:33 +0000 (+1100) Subject: fix up for "mm, swap: simplify folio swap allocation" X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=7e1e496fdf3d00c4d4ef74bf2b9d5515263ca990;p=users%2Fjedix%2Flinux-maple.git fix up for "mm, swap: simplify folio swap allocation" folio_alloc_swap() should be inlined Link: https://lkml.kernel.org/r/20250226161217.1e7c5ae1@canb.auug.org.au Signed-off-by: Stephen Rothwell Cc: Baoquan He Cc: Kairui Song Signed-off-by: Andrew Morton --- diff --git a/include/linux/swap.h b/include/linux/swap.h index 3a68da686c4e..d1f5414ea537 100644 --- a/include/linux/swap.h +++ b/include/linux/swap.h @@ -587,7 +587,7 @@ static inline int swp_swapcount(swp_entry_t entry) return 0; } -static int folio_alloc_swap(struct folio *folio, gfp_t gfp_mask) +static inline int folio_alloc_swap(struct folio *folio, gfp_t gfp_mask) { return -EINVAL; }