* [dm-devel] [PATCH] multipath-tools: remove duplicate headers
@ 2022-01-04 18:34 Xose Vazquez Perez
2022-01-06 22:26 ` Martin Wilck
0 siblings, 1 reply; 4+ messages in thread
From: Xose Vazquez Perez @ 2022-01-04 18:34 UTC (permalink / raw)
Cc: Xose Vazquez Perez, Martin Wilck, DM-DEVEL ML
Minimal clean up done with scripts/checkincludes.pl
Cc: Martin Wilck <mwilck@suse.com>
Cc: Benjamin Marzinski <bmarzins@redhat.com>
Cc: Christophe Varoqui <christophe.varoqui@opensvc.com>
Cc: DM-DEVEL ML <dm-devel@redhat.com>
Signed-off-by: Xose Vazquez Perez <xose.vazquez@gmail.com>
---
./libdmmp/libdmmp.c: stdbool.h is included more than once.
./libmpathpersist/mpath_pr_ioctl.c: unistd.h is included more than once.
./libmultipath/alias.c: errno.h is included more than once.
./libmultipath/alias.c: stdlib.h is included more than once.
./libmultipath/alias.c: util.h is included more than once.
./libmultipath/checkers/directio.c: unistd.h is included more than once.
./libmultipath/checkers/tur.c: ../libmultipath/util.h is included more than once.
./libmultipath/print.c: string.h is included more than once.
./libmultipath/uevent.c: errno.h is included more than once.
./multipath/main.c: alias.h is included more than once.
./multipathd/main.c: uevent.h is included more than once.
./multipathd/main.c: wwids.h is included more than once.
./tests/strbuf.c: stdbool.h is included more than once.
---
libdmmp/libdmmp.c | 1 -
libmpathpersist/mpath_pr_ioctl.c | 1 -
libmultipath/alias.c | 3 ---
libmultipath/checkers/directio.c | 1 -
libmultipath/checkers/tur.c | 1 -
libmultipath/print.c | 1 -
libmultipath/uevent.c | 1 -
multipath/main.c | 1 -
multipathd/main.c | 2 --
tests/strbuf.c | 1 -
10 files changed, 13 deletions(-)
diff --git a/libdmmp/libdmmp.c b/libdmmp/libdmmp.c
index 51f1d8fc..0025e66d 100644
--- a/libdmmp/libdmmp.c
+++ b/libdmmp/libdmmp.c
@@ -26,7 +26,6 @@
#include <libudev.h>
#include <errno.h>
#include <libdevmapper.h>
-#include <stdbool.h>
#include <unistd.h>
#include <assert.h>
#include <json.h>
diff --git a/libmpathpersist/mpath_pr_ioctl.c b/libmpathpersist/mpath_pr_ioctl.c
index 17c52848..093ec71b 100644
--- a/libmpathpersist/mpath_pr_ioctl.c
+++ b/libmpathpersist/mpath_pr_ioctl.c
@@ -10,7 +10,6 @@
#include <unistd.h>
#include <string.h>
#include <sys/ioctl.h>
-#include <unistd.h>
#include <libudev.h>
#include "mpath_pr_ioctl.h"
#include "mpath_persist.h"
diff --git a/libmultipath/alias.c b/libmultipath/alias.c
index 87c33afc..548a1184 100644
--- a/libmultipath/alias.c
+++ b/libmultipath/alias.c
@@ -4,7 +4,6 @@
*/
#include <stdlib.h>
#include <errno.h>
-#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#include <limits.h>
@@ -19,8 +18,6 @@
#include "checkers.h"
#include "structs.h"
#include "config.h"
-#include "util.h"
-#include "errno.h"
#include "devmapper.h"
#include "strbuf.h"
diff --git a/libmultipath/checkers/directio.c b/libmultipath/checkers/directio.c
index 28b0cf51..bc7b7be5 100644
--- a/libmultipath/checkers/directio.c
+++ b/libmultipath/checkers/directio.c
@@ -12,7 +12,6 @@
#include <sys/ioctl.h>
#include <linux/fs.h>
#include <errno.h>
-#include <unistd.h>
#include <libaio.h>
#include "checkers.h"
diff --git a/libmultipath/checkers/tur.c b/libmultipath/checkers/tur.c
index a4b4a213..c93e4625 100644
--- a/libmultipath/checkers/tur.c
+++ b/libmultipath/checkers/tur.c
@@ -23,7 +23,6 @@
#include "../libmultipath/sg_include.h"
#include "../libmultipath/util.h"
#include "../libmultipath/time-util.h"
-#include "../libmultipath/util.h"
#define TUR_CMD_LEN 6
#define HEAVY_CHECK_COUNT 10
diff --git a/libmultipath/print.c b/libmultipath/print.c
index c93fffd4..ef4e05d2 100644
--- a/libmultipath/print.c
+++ b/libmultipath/print.c
@@ -8,7 +8,6 @@
#include <sys/stat.h>
#include <dirent.h>
#include <unistd.h>
-#include <string.h>
#include <errno.h>
#include <assert.h>
#include <libudev.h>
diff --git a/libmultipath/uevent.c b/libmultipath/uevent.c
index b1f00b3e..29e25572 100644
--- a/libmultipath/uevent.c
+++ b/libmultipath/uevent.c
@@ -41,7 +41,6 @@
#include <sys/mman.h>
#include <sys/time.h>
#include <libudev.h>
-#include <errno.h>
#include "debug.h"
#include "list.h"
diff --git a/multipath/main.c b/multipath/main.c
index 0a9377e5..d09f62db 100644
--- a/multipath/main.c
+++ b/multipath/main.c
@@ -63,7 +63,6 @@
#include "time-util.h"
#include "file.h"
#include "valid.h"
-#include "alias.h"
/*
* Return values of configure(), check_path_valid(), and main().
diff --git a/multipathd/main.c b/multipathd/main.c
index 4d611647..c241dad5 100644
--- a/multipathd/main.c
+++ b/multipathd/main.c
@@ -59,7 +59,6 @@
#include "prio.h"
#include "wwids.h"
#include "pgpolicies.h"
-#include "uevent.h"
#include "log.h"
#include "uxsock.h"
#include "alias.h"
@@ -80,7 +79,6 @@
#include "waiter.h"
#include "dmevents.h"
#include "io_err_stat.h"
-#include "wwids.h"
#include "foreign.h"
#include "../third-party/valgrind/drd.h"
#include "init_unwinder.h"
diff --git a/tests/strbuf.c b/tests/strbuf.c
index 43a477db..f8554da5 100644
--- a/tests/strbuf.c
+++ b/tests/strbuf.c
@@ -9,7 +9,6 @@
#include <stddef.h>
#include <setjmp.h>
#include <stdlib.h>
-#include <stdbool.h>
#include <cmocka.h>
#include <errno.h>
#include "strbuf.h"
--
2.34.1
--
dm-devel mailing list
dm-devel@redhat.com
https://listman.redhat.com/mailman/listinfo/dm-devel
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [dm-devel] [PATCH] multipath-tools: remove duplicate headers
2022-01-04 18:34 [dm-devel] [PATCH] multipath-tools: remove duplicate headers Xose Vazquez Perez
@ 2022-01-06 22:26 ` Martin Wilck
0 siblings, 0 replies; 4+ messages in thread
From: Martin Wilck @ 2022-01-06 22:26 UTC (permalink / raw)
To: Xose Vazquez Perez; +Cc: DM-DEVEL ML
On Tue, 2022-01-04 at 19:34 +0100, Xose Vazquez Perez wrote:
> Minimal clean up done with scripts/checkincludes.pl
>
> Cc: Martin Wilck <mwilck@suse.com>
> Cc: Benjamin Marzinski <bmarzins@redhat.com>
> Cc: Christophe Varoqui <christophe.varoqui@opensvc.com>
> Cc: DM-DEVEL ML <dm-devel@redhat.com>
> Signed-off-by: Xose Vazquez Perez <xose.vazquez@gmail.com>
Reviewed-by: Martin Wilck <mwilck@suse.com>
--
dm-devel mailing list
dm-devel@redhat.com
https://listman.redhat.com/mailman/listinfo/dm-devel
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [dm-devel] [PATCH] multipath-tools: remove duplicate headers
2022-04-02 23:18 Xose Vazquez Perez
@ 2022-04-04 10:28 ` Martin Wilck
0 siblings, 0 replies; 4+ messages in thread
From: Martin Wilck @ 2022-04-04 10:28 UTC (permalink / raw)
To: Xose Vazquez Perez; +Cc: DM-DEVEL ML
On Sun, 2022-04-03 at 01:18 +0200, Xose Vazquez Perez wrote:
> Cc: Martin Wilck <mwilck@suse.com>
> Cc: Benjamin Marzinski <bmarzins@redhat.com>
> Cc: Christophe Varoqui <christophe.varoqui@opensvc.com>
> Cc: DM-DEVEL ML <dm-devel@redhat.com>
> Signed-off-by: Xose Vazquez Perez <xose.vazquez@gmail.com>
> ---
> libmultipath/foreign/nvme.c | 1 -
> 1 file changed, 1 deletion(-)
>
> diff --git a/libmultipath/foreign/nvme.c
> b/libmultipath/foreign/nvme.c
> index 838e1164..52ca56d8 100644
> --- a/libmultipath/foreign/nvme.c
> +++ b/libmultipath/foreign/nvme.c
> @@ -23,7 +23,6 @@
> #include <stdlib.h>
> #include <string.h>
> #include <stdbool.h>
> -#include <libudev.h>
> #include <pthread.h>
> #include <limits.h>
> #include <dirent.h>
Thanks!
Reviewed-by: Martin Wilck <mwilck@suse.com>
--
dm-devel mailing list
dm-devel@redhat.com
https://listman.redhat.com/mailman/listinfo/dm-devel
^ permalink raw reply [flat|nested] 4+ messages in thread
* [dm-devel] [PATCH] multipath-tools: remove duplicate headers
@ 2022-04-02 23:18 Xose Vazquez Perez
2022-04-04 10:28 ` Martin Wilck
0 siblings, 1 reply; 4+ messages in thread
From: Xose Vazquez Perez @ 2022-04-02 23:18 UTC (permalink / raw)
Cc: Xose Vazquez Perez, Martin Wilck, DM-DEVEL ML
Cc: Martin Wilck <mwilck@suse.com>
Cc: Benjamin Marzinski <bmarzins@redhat.com>
Cc: Christophe Varoqui <christophe.varoqui@opensvc.com>
Cc: DM-DEVEL ML <dm-devel@redhat.com>
Signed-off-by: Xose Vazquez Perez <xose.vazquez@gmail.com>
---
libmultipath/foreign/nvme.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/libmultipath/foreign/nvme.c b/libmultipath/foreign/nvme.c
index 838e1164..52ca56d8 100644
--- a/libmultipath/foreign/nvme.c
+++ b/libmultipath/foreign/nvme.c
@@ -23,7 +23,6 @@
#include <stdlib.h>
#include <string.h>
#include <stdbool.h>
-#include <libudev.h>
#include <pthread.h>
#include <limits.h>
#include <dirent.h>
--
2.35.1
--
dm-devel mailing list
dm-devel@redhat.com
https://listman.redhat.com/mailman/listinfo/dm-devel
^ permalink raw reply related [flat|nested] 4+ messages in thread
end of thread, other threads:[~2022-04-04 10:29 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-01-04 18:34 [dm-devel] [PATCH] multipath-tools: remove duplicate headers Xose Vazquez Perez
2022-01-06 22:26 ` Martin Wilck
2022-04-02 23:18 Xose Vazquez Perez
2022-04-04 10:28 ` Martin Wilck
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.