* [PATCH] mm: remove duplicate include in hugepage-mremap.c
@ 2021-10-18 10:23 cgel.zte
0 siblings, 0 replies; 2+ messages in thread
From: cgel.zte @ 2021-10-18 10:23 UTC (permalink / raw)
To: shuah
Cc: akpm, linux-mm, linux-kselftest, linux-kernel, Ran Jianping, Zeal Robot
From: Ran Jianping <ran.jianping@zte.com.cn>
Remove duplicate includes 'unistd.h' included in
'/tools/testing/selftests/vm/hugepage-mremap.c' is duplicated.It is also
included on 23 line.
Reported-by: Zeal Robot <zealci@zte.com.cn>
Signed-off-by: Ran Jianping <ran.jianping@zte.com.cn>
---
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 e84b79922fe6..0d8817ba6789 100644
--- a/tools/testing/selftests/vm/hugepage-mremap.c
+++ b/tools/testing/selftests/vm/hugepage-mremap.c
@@ -20,7 +20,6 @@
#include <errno.h>
#include <fcntl.h> /* Definition of O_* constants */
#include <sys/syscall.h> /* Definition of SYS_* constants */
-#include <unistd.h>
#include <linux/userfaultfd.h>
#include <sys/ioctl.h>
--
2.25.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [PATCH]mm: remove duplicate include in hugepage-mremap.c
@ 2021-10-18 10:17 cgel.zte
0 siblings, 0 replies; 2+ messages in thread
From: cgel.zte @ 2021-10-18 10:17 UTC (permalink / raw)
To: akpm
Cc: shuah, linux-mm, linux-kselftest, linux-kernel, Ran Jianping, Zeal Robot
From: Ran Jianping <ran.jianping@zte.com.cn>
Remove duplicated include 'fcntl' included in
'/tools/testing/selftests/vm/hugepage-mremap.c'is duplicated.
It is also included on the 19 line.
Reported-by: Zeal Robot <zealci@zte.com.cn>
Signed-off-by: Ran Jianping <ran.jianping@zte.com.cn>
---
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 e84b79922fe6..6fa6ac423cf1 100644
--- a/tools/testing/selftests/vm/hugepage-mremap.c
+++ b/tools/testing/selftests/vm/hugepage-mremap.c
@@ -16,7 +16,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 */
--
2.25.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-10-18 10:23 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-18 10:23 [PATCH] mm: remove duplicate include in hugepage-mremap.c cgel.zte
-- strict thread matches above, loose matches on Subject: below --
2021-10-18 10:17 [PATCH]mm: " cgel.zte
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).