diff options
| author | Hongfu Li <lihongfu@kylinos.cn> | 2026-07-17 15:11:04 +0800 |
|---|---|---|
| committer | Andrew Morton <akpm@linux-foundation.org> | 2026-07-27 18:33:28 -0700 |
| commit | 8c9a02de7f13342d2bf29c9b324868ccad064d88 (patch) | |
| tree | 82fb0d9c56465fbe4155252cbf5499f4d514479d /mm | |
| parent | 4ead2d16530d71d8d161c51f1f97f1b3d0f0e1cb (diff) | |
| download | linux-next-8c9a02de7f13342d2bf29c9b324868ccad064d88.tar.gz linux-next-8c9a02de7f13342d2bf29c9b324868ccad064d88.zip | |
mm/swap: fix swap_cluster_lock() !CONFIG_SWAP stub signature mismatch
The !CONFIG_SWAP stub for swap_cluster_lock() has mismatched prototype: it
has an extra unused irq argument and uses pgoff_t instead of unsigned long
for offset. All callers are under CONFIG_SWAP so the extra parameter is
dead.
Delete the unused stub function entirely.
Link: https://lore.kernel.org/20260717071104.73467-1-hongfu.li@linux.dev
Signed-off-by: Hongfu Li <lihongfu@kylinos.cn>
Reviewed-by: Baoquan He <baoquan.he@linux.dev>
Acked-by: Kairui Song <kasong@tencent.com>
Cc: Barry Song <baohua@kernel.org>
Cc: Chris Li <chrisl@kernel.org>
Cc: Hongfu Li <lihongfu@kylinos.cn>
Cc: Kemeng Shi <shikemeng@huaweicloud.com>
Cc: Nhat Pham <nphamcs@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'mm')
| -rw-r--r-- | mm/swap.h | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/mm/swap.h b/mm/swap.h index 8fb32bf15739..abd26588abd2 100644 --- a/mm/swap.h +++ b/mm/swap.h @@ -344,11 +344,6 @@ void swap_update_readahead(struct folio *folio, struct vm_area_struct *vma, unsigned long addr); #else /* CONFIG_SWAP */ -static inline struct swap_cluster_info *swap_cluster_lock( - struct swap_info_struct *si, pgoff_t offset, bool irq) -{ - return NULL; -} static inline struct swap_cluster_info *swap_cluster_get_and_lock( struct folio *folio) |
