From: Miaohe Lin Date: Wed, 2 Jun 2021 03:52:11 +0000 (+1000) Subject: mm/swap_slots.c: delete meaningless forward declarations X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=e1d09731dad785be100e548aaeb990d492901a83;p=users%2Fjedix%2Flinux-maple.git mm/swap_slots.c: delete meaningless forward declarations deactivate_swap_slots_cache() and reactivate_swap_slots_cache() are only called below their implementations. So these forward declarations are meaningless and should be removed. Link: https://lkml.kernel.org/r/20210520134022.1370406-4-linmiaohe@huawei.com Signed-off-by: Miaohe Lin Cc: Hugh Dickins Cc: Matthew Wilcox (Oracle) Signed-off-by: Andrew Morton Signed-off-by: Stephen Rothwell --- diff --git a/mm/swap_slots.c b/mm/swap_slots.c index 6248d1030a9b2..a66f3e0ec9733 100644 --- a/mm/swap_slots.c +++ b/mm/swap_slots.c @@ -43,8 +43,6 @@ static DEFINE_MUTEX(swap_slots_cache_mutex); static DEFINE_MUTEX(swap_slots_cache_enable_mutex); static void __drain_swap_slots_cache(unsigned int type); -static void deactivate_swap_slots_cache(void); -static void reactivate_swap_slots_cache(void); #define use_swap_slot_cache (swap_slot_cache_active && swap_slot_cache_enabled) #define SLOTS_CACHE 0x1