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 <[email protected]>
---
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