Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

selftests: core: remove duplicate defines

Remove duplicate defines which are already defined in kernel headers and
re-definition isn't required.

Signed-off-by: Muhammad Usama Anjum <usama.anjum@collabora.com>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>

authored by

Muhammad Usama Anjum and committed by
Shuah Khan
ec544249 44eebacd

-28
-28
tools/testing/selftests/core/close_range_test.c
··· 16 16 #include "../kselftest_harness.h" 17 17 #include "../clone3/clone3_selftests.h" 18 18 19 - #ifndef __NR_close_range 20 - #if defined __alpha__ 21 - #define __NR_close_range 546 22 - #elif defined _MIPS_SIM 23 - #if _MIPS_SIM == _MIPS_SIM_ABI32 /* o32 */ 24 - #define __NR_close_range (436 + 4000) 25 - #endif 26 - #if _MIPS_SIM == _MIPS_SIM_NABI32 /* n32 */ 27 - #define __NR_close_range (436 + 6000) 28 - #endif 29 - #if _MIPS_SIM == _MIPS_SIM_ABI64 /* n64 */ 30 - #define __NR_close_range (436 + 5000) 31 - #endif 32 - #elif defined __ia64__ 33 - #define __NR_close_range (436 + 1024) 34 - #else 35 - #define __NR_close_range 436 36 - #endif 37 - #endif 38 - 39 - #ifndef CLOSE_RANGE_UNSHARE 40 - #define CLOSE_RANGE_UNSHARE (1U << 1) 41 - #endif 42 - 43 - #ifndef CLOSE_RANGE_CLOEXEC 44 - #define CLOSE_RANGE_CLOEXEC (1U << 2) 45 - #endif 46 - 47 19 static inline int sys_close_range(unsigned int fd, unsigned int max_fd, 48 20 unsigned int flags) 49 21 {