diff options
author | Andrew Morton <akpm@osdl.org> | 2004-06-23 19:37:15 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2004-06-23 19:37:15 -0700 |
commit | 86500b9ffeeae6ab859eecd57931bf9f5d664711 (patch) | |
tree | bf4f11549d8890e75934ecb53c3a17c26f4ea77b /mm | |
parent | 1688af1544884eae5ccd1387457bd9f8280f1d15 (diff) | |
download | history-86500b9ffeeae6ab859eecd57931bf9f5d664711.tar.gz |
[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: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'mm')
-rw-r--r-- | mm/vmscan.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/mm/vmscan.c b/mm/vmscan.c index a744497f0d49aa..f142f2f188f6db 100644 --- a/mm/vmscan.c +++ b/mm/vmscan.c @@ -1097,7 +1097,7 @@ out: * If there are applications that are active memory-allocators * (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; struct task_struct *tsk = current; @@ -1136,6 +1136,7 @@ int kswapd(void *p) balance_pgdat(pgdat, 0); } + return 0; } /* |