summaryrefslogtreecommitdiffstats
path: root/tools/testing
diff options
context:
space:
mode:
authorChunyan Zhang <zhang.chunyan@linaro.org>2015-10-01 09:33:02 +0200
committerShuah Khan <shuahkh@osg.samsung.com>2015-10-16 04:00:32 +0200
commit1f78dda2cf5e4eeb00aee2a01c9515e2e704b4c0 (patch)
tree4a6a5719ed0f44c07acf7cd7c4af329e9951fa6f /tools/testing
parentselftests/pstore: add pstore test scripts going with reboot (diff)
downloadlinux-1f78dda2cf5e4eeb00aee2a01c9515e2e704b4c0.tar.xz
linux-1f78dda2cf5e4eeb00aee2a01c9515e2e704b4c0.zip
selftests: memfd_test: Revised STACK_SIZE to make it 16-byte aligned
There is a mandate of 16-byte aligned stack on AArch64 [1], so the STACK_SIZE here should also be 16-byte aligned, otherwise we would get an error when calling clone(). [1] http://lxr.free-electrons.com/source/arch/arm64/kernel/process.c#L265 Signed-off-by: Chunyan Zhang <zhang.chunyan@linaro.org> Acked-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Shuah Khan <shuahkh@osg.samsung.com>
Diffstat (limited to 'tools/testing')
-rw-r--r--tools/testing/selftests/memfd/memfd_test.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/testing/selftests/memfd/memfd_test.c b/tools/testing/selftests/memfd/memfd_test.c
index 0b9eafb7ab7b..aa5d3ebbd760 100644
--- a/tools/testing/selftests/memfd/memfd_test.c
+++ b/tools/testing/selftests/memfd/memfd_test.c
@@ -18,7 +18,7 @@
#include <unistd.h>
#define MFD_DEF_SIZE 8192
-#define STACK_SIZE 65535
+#define STACK_SIZE 65536
static int sys_memfd_create(const char *name,
unsigned int flags)