Skip to contentSkip to conversation

selftests: vm: Remove duplicated include in hugepage-mremap

PATCH In review Wan Jiabing 2 participants 2 messages Oct 21, 2021 – Oct 22, 2021

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 selftests: vm: Remove duplicated include in hugepage-mremap

Fix following checkinclude.pl warning:
./tools/testing/selftests/vm/hugepage-mremap.c: fcntl.h is included more than once.

---
 tools/testing/selftests/vm/hugepage-mremap.c | 1 -
 1 file changed, 1 deletion(-)
tools/testing/selftests/vm/hugepage-mremap.c +0 -1
index 8bc117b12f78..257df94697a5 100644
@@ -12,7 +12,6 @@
 #include <stdio.h>
 #include <unistd.h>
 #include <sys/mman.h>
-#include <fcntl.h>
 #include <errno.h>
 #include <fcntl.h> /* Definition of O_* constants */
 #include <sys/syscall.h> /* Definition of SYS_* constants */
Signature · 1 line
2.20.1
Reviewed-by on v1 1/1
#1 lore raw
Quoted 15 lines · Wan Jiabing

Fix following checkinclude.pl warning:
./tools/testing/selftests/vm/hugepage-mremap.c: fcntl.h is included more than once.

---
 tools/testing/selftests/vm/hugepage-mremap.c | 1 -
 1 file changed, 1 deletion(-)
tools/testing/selftests/vm/hugepage-mremap.c +0 -0
index 8bc117b12f78..257df94697a5 100644

tools/testing/selftests/vm/hugepage-mremap.c line 17

Quoted 7 lines
tools/testing/selftests/vm/hugepage-mremap.c +0 -1
@@ -12,7 +12,6 @@
 #include <stdio.h>
 #include <unistd.h>
 #include <sys/mman.h>
-#include <fcntl.h>
 #include <errno.h>
 #include <fcntl.h> /* Definition of O_* constants */
 #include <sys/syscall.h> /* Definition of SYS_* constants */
Signature · 3 lines
Thanks,

David / dhildenb