selftests: core: include linux/close_range.h for CLOSE_RANGE_* macros
authorMuhammad Usama Anjum <usama.anjum@collabora.com>
Tue, 24 Oct 2023 15:51:25 +0000 (20:51 +0500)
committerAndrew Morton <akpm@linux-foundation.org>
Thu, 8 Feb 2024 05:20:34 +0000 (21:20 -0800)
commit01c1484ac04790fe27a37f89dd3a350f99646815
tree11bd22e5cb050608edb0e39bbb8f3050c4427f20
parent2fde9e7f9e6dc38e1d7091b9705c22be945c8697
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/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>
tools/testing/selftests/core/close_range_test.c