Commit 86500b9f authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[PATCH] kswapd warning fix

mm/vmscan.c: In function `kswapd':
mm/vmscan.c:1139: warning: no return statement in function returning non-void
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 1688af15
...@@ -1097,7 +1097,7 @@ static int balance_pgdat(pg_data_t *pgdat, int nr_pages) ...@@ -1097,7 +1097,7 @@ static int balance_pgdat(pg_data_t *pgdat, int nr_pages)
* If there are applications that are active memory-allocators * If there are applications that are active memory-allocators
* (most normal use), this basically shouldn't matter. * (most normal use), this basically shouldn't matter.
*/ */
int kswapd(void *p) static int kswapd(void *p)
{ {
pg_data_t *pgdat = (pg_data_t*)p; pg_data_t *pgdat = (pg_data_t*)p;
struct task_struct *tsk = current; struct task_struct *tsk = current;
...@@ -1136,6 +1136,7 @@ int kswapd(void *p) ...@@ -1136,6 +1136,7 @@ int kswapd(void *p)
balance_pgdat(pgdat, 0); balance_pgdat(pgdat, 0);
} }
return 0;
} }
/* /*
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment