[<prev] [next>] [day] [month] [year] [list]
Message-ID: <20250226161217.1e7c5ae1@canb.auug.org.au>
Date: Wed, 26 Feb 2025 16:12:17 +1100
From: Stephen Rothwell <sfr@...b.auug.org.au>
To: Andrew Morton <akpm@...ux-foundation.org>
Cc: Kairui Song <kasong@...cent.com>, Linux Kernel Mailing List
<linux-kernel@...r.kernel.org>, Linux Next Mailing List
<linux-next@...r.kernel.org>
Subject: linux-next: build failure after merge of the mm tree
Hi all,
After merging the mm tree, today's linux-next build (powerpc allnoconfig)
failed like this:
In file included from include/linux/suspend.h:5,
from arch/powerpc/mm/mem.c:17:
include/linux/swap.h:581:12: error: 'folio_alloc_swap' defined but not used [-Werror=unused-function]
581 | static int folio_alloc_swap(struct folio *folio, gfp_t gfp_mask)
| ^~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
(and many, many more - some just warnings)
Caused by commit
436a263c3c8e ("mm, swap: simplify folio swap allocation")
from the mm-unstable branch of the mm tree.
I have applied the following patch for today.
From: Stephen Rothwell <sfr@...b.auug.org.au>
Date: Wed, 26 Feb 2025 15:54:33 +1100
Subject: [PATCH] fix up for "mm, swap: simplify folio swap allocation"
Signed-off-by: Stephen Rothwell <sfr@...b.auug.org.au>
---
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 6547fc4b9523..eb0ffcbe93e8 100644
--- a/include/linux/swap.h
+++ b/include/linux/swap.h
@@ -578,7 +578,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.45.2
--
Cheers,
Stephen Rothwell
Content of type "application/pgp-signature" skipped
Powered by blists - more mailing lists