From: Daniel Walker Date: Sun, 5 Jul 2009 16:32:43 +0000 (-0700) Subject: Staging: android: lowmemorykiller: remove a predefine X-Git-Tag: MMI-PSA29.97-13-9~26941^2~634 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=edd540ea92954f896bfb7ee0ebf5dfdde6e6cb41;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git Staging: android: lowmemorykiller: remove a predefine I moved the struct shrinker down so that the predefine isn't needed. Signed-off-by: Daniel Walker Cc: Arve Hjønnevåg Cc: Brian Swetland Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/android/lowmemorykiller.c b/drivers/staging/android/lowmemorykiller.c index f934393f3959..fb066a3e17fe 100644 --- a/drivers/staging/android/lowmemorykiller.c +++ b/drivers/staging/android/lowmemorykiller.c @@ -19,12 +19,6 @@ #include #include -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);