
From: Hans Reiser <reiser@namesys.com>

When kernel is compiled with CONFIG_FRAME_POINTER reiser4 turns on debugging
code which provides stack back-trace.  It is collected through
__builtin_return_address() gcc builtin.  Unfortunately,
__builtin_return_address() doesn't provide means to detect when bottom of the
stack is reached, and just crashed when trying to access non-existent frame.

Reiser4 implements a work around for this problem.  For this it needs kswapd
to be not static.

Signed-off-by: Andrew Morton <akpm@osdl.org>
---

 25-akpm/mm/vmscan.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)

diff -puN mm/vmscan.c~reiser4-unstatic-kswapd mm/vmscan.c
--- 25/mm/vmscan.c~reiser4-unstatic-kswapd	Wed Nov 10 14:46:02 2004
+++ 25-akpm/mm/vmscan.c	Wed Nov 10 14:46:02 2004
@@ -1147,7 +1147,7 @@ out:
  * If there are applications that are active memory-allocators
  * (most normal use), this basically shouldn't matter.
  */
-static int kswapd(void *p)
+int kswapd(void *p)
 {
 	unsigned long order;
 	pg_data_t *pgdat = (pg_data_t*)p;
_
