From f5c3349bdb9cae2eec5adb9892445d3a1b482ec4 Mon Sep 17 00:00:00 2001 From: Christian Goettsche Date: Wed, 18 Nov 2020 15:12:18 +0100 Subject: IWYU update (FreeBSD) --- zfs/ZfsArcStats.c | 16 ---------------- zfs/openzfs_sysctl.c | 13 +++++-------- 2 files changed, 5 insertions(+), 24 deletions(-) (limited to 'zfs') diff --git a/zfs/ZfsArcStats.c b/zfs/ZfsArcStats.c index ae565633..bead8461 100644 --- a/zfs/ZfsArcStats.c +++ b/zfs/ZfsArcStats.c @@ -5,22 +5,6 @@ Released under the GNU GPLv2, see the COPYING file in the source distribution for its full text. */ -/*{ -typedef struct ZfsArcStats_ { - int enabled; - int isCompressed; - unsigned long long int max; - unsigned long long int size; - unsigned long long int MFU; - unsigned long long int MRU; - unsigned long long int anon; - unsigned long long int header; - unsigned long long int other; - unsigned long long int compressed; - unsigned long long int uncompressed; -} ZfsArcStats; -}*/ - #include "Macros.h" static int make_iso_compilers_happy ATTR_UNUSED; diff --git a/zfs/openzfs_sysctl.c b/zfs/openzfs_sysctl.c index 59d7469f..fd00d61b 100644 --- a/zfs/openzfs_sysctl.c +++ b/zfs/openzfs_sysctl.c @@ -6,12 +6,13 @@ in the source distribution for its full text. */ #include "zfs/openzfs_sysctl.h" -#include "zfs/ZfsArcStats.h" -#include #include -#include -#include +#include // IWYU pragma: keep +#include // needs for u_int with gcc + +#include "zfs/ZfsArcStats.h" + static int MIB_kstat_zfs_misc_arcstats_size[5]; static int MIB_kstat_zfs_misc_arcstats_c_max[5]; @@ -23,10 +24,6 @@ static int MIB_kstat_zfs_misc_arcstats_other_size[5]; static int MIB_kstat_zfs_misc_arcstats_compressed_size[5]; static int MIB_kstat_zfs_misc_arcstats_uncompressed_size[5]; -/*{ -#include "zfs/ZfsArcStats.h" -}*/ - void openzfs_sysctl_init(ZfsArcStats* stats) { size_t len; unsigned long long int arcSize; -- cgit v1.2.3