diff options
author | Bamvor Jian Zhang <bamvor.zhangjian@linaro.org> | 2015-11-13 11:17:51 +0800 |
---|---|---|
committer | Shuah Khan <shuahkh@osg.samsung.com> | 2015-11-18 16:56:53 -0700 |
commit | 2ce47b44b25d8fb0114ff117813742adbefec8ff (patch) | |
tree | 3d887ac8d930f10cd14524d736846222edcdc30b /include/linux/lightnvm.h | |
parent | 9e5b8a6e53c79e6ccdbe6e62142ed9f317cefd46 (diff) | |
download | op-kernel-dev-2ce47b44b25d8fb0114ff117813742adbefec8ff.zip op-kernel-dev-2ce47b44b25d8fb0114ff117813742adbefec8ff.tar.gz |
selftests/seccomp: Get page size from sysconf
The commit fd88d16c58c2 ("selftests/seccomp: Be more precise with
syscall arguments.") use PAGE_SIZE directly which lead to build
failure on arm64.
Replace it with generic interface(sysconf(_SC_PAGESIZE)) to fix this
failure.
Build and test successful on x86_64 and arm64.
Signed-off-by: Bamvor Jian Zhang <bamvor.zhangjian@linaro.org>
Acked-by: Kees Cook <keescook@chromium.org>
Tested-by: Michael Ellerman <mpe@ellerman.id.au>
Signed-off-by: Shuah Khan <shuahkh@osg.samsung.com>
Diffstat (limited to 'include/linux/lightnvm.h')
0 files changed, 0 insertions, 0 deletions