From 39426445c5af194e58cfdcbee8c26f58a7daf68b Mon Sep 17 00:00:00 2001 From: Stephen Rothwell Date: Wed, 26 Feb 2025 15:54:33 +1100 Subject: [PATCH] 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 --- include/linux/swap.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.50.1