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

Configure Feed

Select the types of activity you want to include in your feed.

selftests/mount_settattr: remove duplicate syscall definitions

Which are already defined in wrappers.h.

For now, the syscall defintions of mount_settattr() itself
remain in the test, which is the only test to use them.

Signed-off-by: Amir Goldstein <amir73il@gmail.com>
Link: https://lore.kernel.org/20250509133240.529330-5-amir73il@gmail.com
Reviewed-by: Christian Brauner <brauner@kernel.org>
Signed-off-by: Christian Brauner <brauner@kernel.org>

authored by

Amir Goldstein and committed by
Christian Brauner
ec050f2a ef058fc1

-52
-52
tools/testing/selftests/mount_setattr/mount_setattr_test.c
··· 107 107 #endif 108 108 #endif 109 109 110 - #ifndef __NR_open_tree 111 - #if defined __alpha__ 112 - #define __NR_open_tree 538 113 - #elif defined _MIPS_SIM 114 - #if _MIPS_SIM == _MIPS_SIM_ABI32 /* o32 */ 115 - #define __NR_open_tree 4428 116 - #endif 117 - #if _MIPS_SIM == _MIPS_SIM_NABI32 /* n32 */ 118 - #define __NR_open_tree 6428 119 - #endif 120 - #if _MIPS_SIM == _MIPS_SIM_ABI64 /* n64 */ 121 - #define __NR_open_tree 5428 122 - #endif 123 - #elif defined __ia64__ 124 - #define __NR_open_tree (428 + 1024) 125 - #else 126 - #define __NR_open_tree 428 127 - #endif 128 - #endif 129 - 130 - #ifndef __NR_move_mount 131 - #if defined __alpha__ 132 - #define __NR_move_mount 539 133 - #elif defined _MIPS_SIM 134 - #if _MIPS_SIM == _MIPS_SIM_ABI32 /* o32 */ 135 - #define __NR_move_mount 4429 136 - #endif 137 - #if _MIPS_SIM == _MIPS_SIM_NABI32 /* n32 */ 138 - #define __NR_move_mount 6429 139 - #endif 140 - #if _MIPS_SIM == _MIPS_SIM_ABI64 /* n64 */ 141 - #define __NR_move_mount 5429 142 - #endif 143 - #elif defined __ia64__ 144 - #define __NR_move_mount (428 + 1024) 145 - #else 146 - #define __NR_move_mount 429 147 - #endif 148 - #endif 149 - 150 110 #ifndef MOUNT_ATTR_IDMAP 151 111 #define MOUNT_ATTR_IDMAP 0x00100000 152 112 #endif ··· 120 160 { 121 161 return syscall(__NR_mount_setattr, dfd, path, flags, attr, size); 122 162 } 123 - 124 - #ifndef OPEN_TREE_CLONE 125 - #define OPEN_TREE_CLONE 1 126 - #endif 127 - 128 - #ifndef OPEN_TREE_CLOEXEC 129 - #define OPEN_TREE_CLOEXEC O_CLOEXEC 130 - #endif 131 - 132 - #ifndef AT_RECURSIVE 133 - #define AT_RECURSIVE 0x8000 /* Apply to the entire subtree */ 134 - #endif 135 163 136 164 static ssize_t write_nointr(int fd, const void *buf, size_t count) 137 165 {