mm/swap.c: Mark sort_page_lruvec with static keyword
PATCH 1/1 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 <[email protected]>
--- mm/swap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
mm/swap.c +1 -1
@@ -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;
Signature · 1 line
2.6.2