lkml.org 
[lkml]   [2020]   [Nov]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH -next] mm/swap.c: Mark sort_page_lruvec with static keyword
Date
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
\
 
 \ /
  Last update: 2020-11-24 12:36    [W:0.026 / U:0.048 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site