[<prev] [next>] [day] [month] [year] [list]
Message-ID: <1606218425-3874-1-git-send-email-zou_wei@huawei.com>
Date: Tue, 24 Nov 2020 19:47:05 +0800
From: Zou Wei <zou_wei@...wei.com>
To: <akpm@...ux-foundation.org>
CC: <linux-mm@...ck.org>, <linux-kernel@...r.kernel.org>,
Zou Wei <zou_wei@...wei.com>
Subject: [PATCH -next] mm/swap.c: Mark sort_page_lruvec with static keyword
Fix the following sparse warning:
mm/swap.c:1018:5: warning: symbol 'sort_page_lruvec' was not declared. Should it be static?
Signed-off-by: Zou Wei <zou_wei@...wei.com>
---
mm/swap.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/mm/swap.c b/mm/swap.c
index c787b38..5022dfe 100644
--- a/mm/swap.c
+++ b/mm/swap.c
@@ -1015,7 +1015,7 @@ struct lruvecs {
};
/* Sort pvec pages on their lruvec */
-int sort_page_lruvec(struct lruvecs *lruvecs, struct pagevec *pvec)
+static int sort_page_lruvec(struct lruvecs *lruvecs, struct pagevec *pvec)
{
int i, j, nr_lruvec;
struct page *page;
--
2.6.2
Powered by blists - more mailing lists