Skip to content

Commit 01c1484

Browse files
musamaanjumakpm00
authored andcommitted
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: ec54424 ("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]>
1 parent 2fde9e7 commit 01c1484

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tools/testing/selftests/core/close_range_test.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
#include <syscall.h>
1313
#include <unistd.h>
1414
#include <sys/resource.h>
15+
#include <linux/close_range.h>
1516

1617
#include "../kselftest_harness.h"
1718
#include "../clone3/clone3_selftests.h"

0 commit comments

Comments
 (0)