From 8a915ba1f66edc3863c0dcb1c2a4f83582cd4a94 Mon Sep 17 00:00:00 2001 From: Andrea Gelmini Date: Mon, 22 Mar 2021 20:34:58 +0100 Subject: [PATCH] Removed duplicated includes Reviewed-by: Matthew Ahrens Reviewed-by: Brian Behlendorf Signed-off-by: Andrea Gelmini Closes #11775 --- cmd/raidz_test/raidz_bench.c | 2 -- cmd/zfs/zfs_main.c | 2 -- cmd/zpool/os/linux/zpool_vdev_os.c | 3 --- include/sys/dmu_recv.h | 1 - include/sys/dmu_send.h | 1 - lib/libspl/include/sys/dklabel.h | 1 - lib/libzfs/libzfs_dataset.c | 2 -- lib/libzfs/libzfs_pool.c | 1 - lib/libzfs/libzfs_sendrecv.c | 1 - lib/libzutil/os/linux/zutil_import_os.c | 1 - lib/libzutil/zutil_import.c | 1 - module/os/linux/zfs/arc_os.c | 1 - module/zfs/arc.c | 1 - module/zfs/dmu_recv.c | 1 - module/zfs/fm.c | 1 - 15 files changed, 20 deletions(-) diff --git a/cmd/raidz_test/raidz_bench.c b/cmd/raidz_test/raidz_bench.c index a3446c52c4..f44d6fbde7 100644 --- a/cmd/raidz_test/raidz_bench.c +++ b/cmd/raidz_test/raidz_bench.c @@ -31,8 +31,6 @@ #include #include -#include - #include "raidz_test.h" #define GEN_BENCH_MEMORY (((uint64_t)1ULL)<<32) diff --git a/cmd/zfs/zfs_main.c b/cmd/zfs/zfs_main.c index 9a59fddbf0..1a5129f794 100644 --- a/cmd/zfs/zfs_main.c +++ b/cmd/zfs/zfs_main.c @@ -53,7 +53,6 @@ #include #include #include -#include #include #include #include @@ -71,7 +70,6 @@ #include #include #include -#include #ifdef HAVE_IDMAP #include #include diff --git a/cmd/zpool/os/linux/zpool_vdev_os.c b/cmd/zpool/os/linux/zpool_vdev_os.c index d087c4c14d..55a9367ec1 100644 --- a/cmd/zpool/os/linux/zpool_vdev_os.c +++ b/cmd/zpool/os/linux/zpool_vdev_os.c @@ -79,9 +79,6 @@ #include #include -#include -#include -#include #include #include #include diff --git a/include/sys/dmu_recv.h b/include/sys/dmu_recv.h index dacc6b7829..7188b2a022 100644 --- a/include/sys/dmu_recv.h +++ b/include/sys/dmu_recv.h @@ -34,7 +34,6 @@ #include #include #include -#include extern const char *recv_clone_name; diff --git a/include/sys/dmu_send.h b/include/sys/dmu_send.h index d6d050e01f..d150f816c9 100644 --- a/include/sys/dmu_send.h +++ b/include/sys/dmu_send.h @@ -34,7 +34,6 @@ #include #include #include -#include #include #define BEGINNV_REDACT_SNAPS "redact_snaps" diff --git a/lib/libspl/include/sys/dklabel.h b/lib/libspl/include/sys/dklabel.h index 95faf2bb4a..8c2ca06c0c 100644 --- a/lib/libspl/include/sys/dklabel.h +++ b/lib/libspl/include/sys/dklabel.h @@ -31,7 +31,6 @@ #include #include -#include #ifdef __cplusplus extern "C" { diff --git a/lib/libzfs/libzfs_dataset.c b/lib/libzfs/libzfs_dataset.c index 47418b3237..4598e87f29 100644 --- a/lib/libzfs/libzfs_dataset.c +++ b/lib/libzfs/libzfs_dataset.c @@ -48,7 +48,6 @@ #include #include #include -#include #include #ifdef HAVE_IDMAP #include @@ -66,7 +65,6 @@ #include "zfs_namecheck.h" #include "zfs_prop.h" #include "libzfs_impl.h" -#include "libzfs.h" #include "zfs_deleg.h" static int userquota_propname_decode(const char *propname, boolean_t zoned, diff --git a/lib/libzfs/libzfs_pool.c b/lib/libzfs/libzfs_pool.c index 1934466536..0af56ec321 100644 --- a/lib/libzfs/libzfs_pool.c +++ b/lib/libzfs/libzfs_pool.c @@ -49,7 +49,6 @@ #include #include #include -#include #include "zfs_namecheck.h" #include "zfs_prop.h" diff --git a/lib/libzfs/libzfs_sendrecv.c b/lib/libzfs/libzfs_sendrecv.c index 1e3a0bf561..bc887e72a2 100644 --- a/lib/libzfs/libzfs_sendrecv.c +++ b/lib/libzfs/libzfs_sendrecv.c @@ -48,7 +48,6 @@ #include #include #include -#include #include #include #include diff --git a/lib/libzutil/os/linux/zutil_import_os.c b/lib/libzutil/os/linux/zutil_import_os.c index 519ab3a078..2e0baecb3b 100644 --- a/lib/libzutil/os/linux/zutil_import_os.c +++ b/lib/libzutil/os/linux/zutil_import_os.c @@ -61,7 +61,6 @@ #include #include #include -#include #include #include diff --git a/lib/libzutil/zutil_import.c b/lib/libzutil/zutil_import.c index e1f31b3855..93d05354f3 100644 --- a/lib/libzutil/zutil_import.c +++ b/lib/libzutil/zutil_import.c @@ -62,7 +62,6 @@ #include #include #include -#include #include #include diff --git a/module/os/linux/zfs/arc_os.c b/module/os/linux/zfs/arc_os.c index 83d4a3d849..465775a674 100644 --- a/module/os/linux/zfs/arc_os.c +++ b/module/os/linux/zfs/arc_os.c @@ -38,7 +38,6 @@ #include #include #include -#include #include #include #include diff --git a/module/zfs/arc.c b/module/zfs/arc.c index 9be0a4e8a4..55c71a3829 100644 --- a/module/zfs/arc.c +++ b/module/zfs/arc.c @@ -294,7 +294,6 @@ #include #include #include -#include #include #include #include diff --git a/module/zfs/dmu_recv.c b/module/zfs/dmu_recv.c index a0fd157ebc..123ea05b04 100644 --- a/module/zfs/dmu_recv.c +++ b/module/zfs/dmu_recv.c @@ -53,7 +53,6 @@ #include #include #include -#include #include #include #include diff --git a/module/zfs/fm.c b/module/zfs/fm.c index a5003f85d6..3070cab1e4 100644 --- a/module/zfs/fm.c +++ b/module/zfs/fm.c @@ -67,7 +67,6 @@ #include #include #include -#include #include int zfs_zevent_len_max = 0;