Staging: android: lowmemorykiller: remove a predefine
authorDaniel Walker <dwalker@fifo99.com>
Sun, 5 Jul 2009 16:32:43 +0000 (09:32 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 15 Sep 2009 19:01:26 +0000 (12:01 -0700)
I moved the struct shrinker down so that the predefine isn't needed.

Signed-off-by: Daniel Walker <dwalker@fifo99.com>
Cc: Arve Hjønnevåg <arve@android.com>
Cc: Brian Swetland <swetland@google.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/android/lowmemorykiller.c

index f934393f39597c7ee1fc2baebf503b90222d636c..fb066a3e17fe8543828018c5573a575270ad2778 100644 (file)
 #include <linux/oom.h>
 #include <linux/sched.h>
 
-static int lowmem_shrink(int nr_to_scan, gfp_t gfp_mask);
-
-static struct shrinker lowmem_shrinker = {
-       .shrink = lowmem_shrink,
-       .seeks = DEFAULT_SEEKS * 16
-};
 static uint32_t lowmem_debug_level = 2;
 static int lowmem_adj[6] = {
        0,
@@ -140,6 +134,11 @@ static int lowmem_shrink(int nr_to_scan, gfp_t gfp_mask)
        return rem;
 }
 
+static struct shrinker lowmem_shrinker = {
+       .shrink = lowmem_shrink,
+       .seeks = DEFAULT_SEEKS * 16
+};
+
 static int __init lowmem_init(void)
 {
        register_shrinker(&lowmem_shrinker);