From: Miaohe Lin Date: Wed, 24 Feb 2021 20:09:19 +0000 (-0800) Subject: z3fold: remove unused attribute for release_z3fold_page X-Git-Tag: v5.15~1642^2~20 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=70ad3196a68b0857b49811da7a94ad4f5a8e75bb;p=platform%2Fkernel%2Flinux-starfive.git z3fold: remove unused attribute for release_z3fold_page Since commit dcf5aedb24f8 ("z3fold: stricter locking and more careful reclaim"), release_z3fold_page() is used again. So we can drop the unused attribute safely. Link: https://lkml.kernel.org/r/20210120084008.58432-1-linmiaohe@huawei.com Signed-off-by: Miaohe Lin Cc: Vitaly Wool Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/mm/z3fold.c b/mm/z3fold.c index dacb0d70fa61..8e53cdf4d190 100644 --- a/mm/z3fold.c +++ b/mm/z3fold.c @@ -541,8 +541,7 @@ static void __release_z3fold_page(struct z3fold_header *zhdr, bool locked) spin_unlock(&pool->stale_lock); } -static void __attribute__((__unused__)) - release_z3fold_page(struct kref *ref) +static void release_z3fold_page(struct kref *ref) { struct z3fold_header *zhdr = container_of(ref, struct z3fold_header, refcount);