diff options
| author | Muhammad Usama Anjum <usama.anjum@collabora.com> | 2023-10-24 20:51:25 +0500 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2024-02-16 19:14:27 +0100 |
| commit | a56d283d21397839fbc951805918a9a91f757460 (patch) | |
| tree | a68d2970d033053fb48972eb040f364bc09549ea | |
| parent | dc1fc14047bd6cc7801f69e60aa36c8e44031bba (diff) | |
| download | linux-a56d283d21397839fbc951805918a9a91f757460.tar.gz linux-a56d283d21397839fbc951805918a9a91f757460.tar.bz2 linux-a56d283d21397839fbc951805918a9a91f757460.zip | |
selftests: core: include linux/close_range.h for CLOSE_RANGE_* macros
[ Upstream commit 01c1484ac04790fe27a37f89dd3a350f99646815 ]
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/20231024155137.219700-1-usama.anjum@collabora.com
Fixes: ec54424923cf ("selftests: core: remove duplicate defines")
Reported-by: Aishwarya TCV <aishwarya.tcv@arm.com>
Link: https://lore.kernel.org/all/7161219e-0223-d699-d6f3-81abd9abf13b@arm.com
Signed-off-by: Muhammad Usama Anjum <usama.anjum@collabora.com>
Cc: Shuah Khan <shuah@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
| -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" |
