Skip to content

Commit d8e45bf

Browse files
committed
selftests/mount_setattr: fix redefine struct mount_attr build error
Fix the following build error due to redefining struct mount_attr by removing duplicate define from mount_setattr_test.c gcc -g -isystem .../tools/testing/selftests/../../../usr/include -Wall -O2 -pthread mount_setattr_test.c -o .../tools/testing/selftests/mount_setattr/mount_setattr_test mount_setattr_test.c:107:8: error: redefinition of ‘struct mount_attr’ 107 | struct mount_attr { | ^~~~~~~~~~ In file included from /usr/include/x86_64-linux-gnu/sys/mount.h:32, from mount_setattr_test.c:10: .../usr/include/linux/mount.h:129:8: note: originally defined here 129 | struct mount_attr { | ^~~~~~~~~~ make: *** [../lib.mk:145: .../tools/testing/selftests/mount_setattr/mount_setattr_test] Error 1 Signed-off-by: Shuah Khan <[email protected]>
1 parent a7151a8 commit d8e45bf

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

tools/testing/selftests/mount_setattr/mount_setattr_test.c

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -103,13 +103,6 @@
103103
#else
104104
#define __NR_mount_setattr 442
105105
#endif
106-
107-
struct mount_attr {
108-
__u64 attr_set;
109-
__u64 attr_clr;
110-
__u64 propagation;
111-
__u64 userns_fd;
112-
};
113106
#endif
114107

115108
#ifndef __NR_open_tree

0 commit comments

Comments
 (0)