linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [PATCH -next] mm/swap.c: Mark sort_page_lruvec with static keyword
@ 2020-11-24 11:47 Zou Wei
  0 siblings, 0 replies; only message in thread
From: Zou Wei @ 2020-11-24 11:47 UTC (permalink / raw)
  To: akpm; +Cc: linux-mm, linux-kernel, Zou Wei

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@huawei.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



^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2020-11-24 11:35 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-11-24 11:47 [PATCH -next] mm/swap.c: Mark sort_page_lruvec with static keyword Zou Wei

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).