diff options
author | Christian Goettsche <cgzones@googlemail.com> | 2020-11-18 15:12:18 +0100 |
---|---|---|
committer | BenBE <BenBE@geshi.org> | 2020-11-19 23:51:50 +0100 |
commit | f5c3349bdb9cae2eec5adb9892445d3a1b482ec4 (patch) | |
tree | 72d2d82c7e2fac5f95205d344a837fa15022e516 /zfs/openzfs_sysctl.c | |
parent | 7cf527759481a760b0f08da16add3a5120048572 (diff) |
IWYU update (FreeBSD)
Diffstat (limited to 'zfs/openzfs_sysctl.c')
-rw-r--r-- | zfs/openzfs_sysctl.c | 13 |
1 files changed, 5 insertions, 8 deletions
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 <unistd.h> #include <stdlib.h> -#include <sys/types.h> -#include <sys/sysctl.h> +#include <sys/types.h> // IWYU pragma: keep +#include <sys/sysctl.h> // needs <sys/types.h> 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; |