summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Xu <jeffxu@chromium.org>2024-05-02 22:53:31 +0000
committerAndrew Morton <akpm@linux-foundation.org>2024-05-07 11:29:48 -0700
commitc8fdc705145013e5ea336dd34c46e07c33a5bb36 (patch)
treef373e67982d3fb2a227da2c723dd1d3d2b5d298b
parent7351fd35087535ccff5179c52d8b8f4a1ce3db7e (diff)
selftest mm/mseal: fix arm build
Add include linux/mman.h to fix arm build. Fix a typo. Link: https://lkml.kernel.org/r/20240502225331.3806279-2-jeffxu@chromium.org Signed-off-by: Jeff Xu <jeffxu@chromium.org> Suggested-by: Ryan Roberts <ryan.roberts@arm.com> Tested-by: Ryan Roberts <ryan.roberts@arm.com> Reviewed-by: Ryan Roberts <ryan.roberts@arm.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
-rw-r--r--tools/testing/selftests/mm/mseal_test.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/testing/selftests/mm/mseal_test.c b/tools/testing/selftests/mm/mseal_test.c
index ca8dbee0c612..41998cf1dcf5 100644
--- a/tools/testing/selftests/mm/mseal_test.c
+++ b/tools/testing/selftests/mm/mseal_test.c
@@ -1,5 +1,6 @@
// SPDX-License-Identifier: GPL-2.0
#define _GNU_SOURCE
+#include <linux/mman.h>
#include <sys/mman.h>
#include <stdint.h>
#include <unistd.h>
@@ -29,7 +30,7 @@
# define PKEY_DISABLE_WRITE 0x2
#endif
-#ifndef PKEY_BITS_PER_KEY
+#ifndef PKEY_BITS_PER_PKEY
#define PKEY_BITS_PER_PKEY 2
#endif