From 1214fe771bd991dd9c423e79e99f30fa748c1b84 Mon Sep 17 00:00:00 2001 From: Kichan Kwon Date: Wed, 5 Apr 2017 16:13:47 +0900 Subject: [PATCH] memory : use size_t instead of int - To pass argument with resourced_notify, you should cast to (void *) - However, in 64bit architecture, build is failed because the size of (int) and (void *) is different Change-Id: Ic7750e292b711777a31b9e80058baaff2b57dee4 Signed-off-by: Kichan Kwon --- src/memory/vmpressure-lowmem-handler.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/memory/vmpressure-lowmem-handler.c b/src/memory/vmpressure-lowmem-handler.c index 229678b..5acc53d 100644 --- a/src/memory/vmpressure-lowmem-handler.c +++ b/src/memory/vmpressure-lowmem-handler.c @@ -273,7 +273,7 @@ static void low_act(void); static void medium_act(void); -static int cur_mem_state = LOWMEM_NORMAL; +static size_t cur_mem_state = LOWMEM_NORMAL; static int num_max_victims = MAX_MEMORY_CGROUP_VICTIMS; static int num_vict_between_check = MAX_VICTIMS_BETWEEN_CHECK; -- 2.7.4