From 4200d42ee6417ed54e7d31db37bcbbb248cd98b4 Mon Sep 17 00:00:00 2001 From: Alexander Kartashov Date: Wed, 3 Apr 2013 16:03:03 +0000 Subject: [PATCH] session02: hard-code the value of the macro CLONE_STACK_SIZE The macro PAGE_SIZE is declared in the following way in Debian: #define PAGE_SIZE (sysconf(_SC_PAGESIZE)) that makes it impossible to use the macro as the size of the array clone_args::stack since this generates the following error: cc -g -O2 -Wall -Werror -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=0 -iquote ../../lib/arch/arm/include -I../../lib session02.c ../../lib/libzdtmtst.a -o session02 session02.c:70:7: error: variably modified 'stack' at file scope Cc: Andrey Vagin Signed-off-by: Alexander Kartashov Acked-by: Andrew Vagin Signed-off-by: Pavel Emelyanov --- test/zdtm/live/static/session02.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/zdtm/live/static/session02.c b/test/zdtm/live/static/session02.c index 201e4694d..0638b8749 100644 --- a/test/zdtm/live/static/session02.c +++ b/test/zdtm/live/static/session02.c @@ -64,7 +64,7 @@ static void mainloop() handle_command(); } -#define CLONE_STACK_SIZE PAGE_SIZE +#define CLONE_STACK_SIZE 4096 /* All arguments should be above stack, because it grows down */ struct clone_args { char stack[CLONE_STACK_SIZE];