diff options
author | Muhammad Usama Anjum <[email protected]> | 2023-10-24 20:51:25 +0500 |
---|---|---|
committer | Andrew Morton <[email protected]> | 2024-02-07 21:20:34 -0800 |
commit | 01c1484ac04790fe27a37f89dd3a350f99646815 (patch) | |
tree | 11bd22e5cb050608edb0e39bbb8f3050c4427f20 | |
parent | 2fde9e7f9e6dc38e1d7091b9705c22be945c8697 (diff) |
selftests: core: include linux/close_range.h for CLOSE_RANGE_* macros
Correct header file is needed for getting CLOSE_RANGE_* macros.
Previously it was tested with newer glibc which didn't show the need to
include the header which was a mistake.
Link: https://lkml.kernel.org/r/[email protected]
Fixes: ec54424923cf ("selftests: core: remove duplicate defines")
Reported-by: Aishwarya TCV <[email protected]>
Link: https://lore.kernel.org/all/[email protected]
Signed-off-by: Muhammad Usama Anjum <[email protected]>
Cc: Shuah Khan <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
-rw-r--r-- | tools/testing/selftests/core/close_range_test.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/testing/selftests/core/close_range_test.c b/tools/testing/selftests/core/close_range_test.c index 534576f06df1..c59e4adb905d 100644 --- a/tools/testing/selftests/core/close_range_test.c +++ b/tools/testing/selftests/core/close_range_test.c @@ -12,6 +12,7 @@ #include <syscall.h> #include <unistd.h> #include <sys/resource.h> +#include <linux/close_range.h> #include "../kselftest_harness.h" #include "../clone3/clone3_selftests.h" |