diff mbox series

selftests: vm: Remove duplicated include in hugepage-mremap

Message ID 20211021122944.8857-1-wanjiabing@vivo.com (mailing list archive)
State New
Headers show
Series selftests: vm: Remove duplicated include in hugepage-mremap | expand

Commit Message

Jiabing Wan Oct. 21, 2021, 12:29 p.m. UTC
Fix following checkinclude.pl warning:
./tools/testing/selftests/vm/hugepage-mremap.c: fcntl.h is included
more than once.

Signed-off-by: Wan Jiabing <wanjiabing@vivo.com>
---
 tools/testing/selftests/vm/hugepage-mremap.c | 1 -
 1 file changed, 1 deletion(-)

Comments

David Hildenbrand Oct. 22, 2021, 12:18 p.m. UTC | #1
On 21.10.21 14:29, Wan Jiabing wrote:
> Fix following checkinclude.pl warning:
> ./tools/testing/selftests/vm/hugepage-mremap.c: fcntl.h is included
> more than once.
> 
> Signed-off-by: Wan Jiabing <wanjiabing@vivo.com>
> ---
>  tools/testing/selftests/vm/hugepage-mremap.c | 1 -
>  1 file changed, 1 deletion(-)
> 
> diff --git a/tools/testing/selftests/vm/hugepage-mremap.c b/tools/testing/selftests/vm/hugepage-mremap.c
> index 8bc117b12f78..257df94697a5 100644
> --- a/tools/testing/selftests/vm/hugepage-mremap.c
> +++ b/tools/testing/selftests/vm/hugepage-mremap.c
> @@ -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 */
> 

Reviewed-by: David Hildenbrand <david@redhat.com>
diff mbox series

Patch

diff --git a/tools/testing/selftests/vm/hugepage-mremap.c b/tools/testing/selftests/vm/hugepage-mremap.c
index 8bc117b12f78..257df94697a5 100644
--- a/tools/testing/selftests/vm/hugepage-mremap.c
+++ b/tools/testing/selftests/vm/hugepage-mremap.c
@@ -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 */