diff options
author | ngie <ngie@FreeBSD.org> | 2016-09-02 04:21:40 +0000 |
---|---|---|
committer | ngie <ngie@FreeBSD.org> | 2016-09-02 04:21:40 +0000 |
commit | 3d3e8a124ca6d5dea19fd3ac9a0b35a8eecd1cc3 (patch) | |
tree | c0712f8b9ee36a7fc8181e19ac5dfbf3eef62bfe /sys/cddl/contrib/opensolaris/uts/common/fs/zfs/vdev_queue.c | |
parent | 75663f22d75f86aa3f5efc5cadbcff791f66b4f9 (diff) | |
download | FreeBSD-src-3d3e8a124ca6d5dea19fd3ac9a0b35a8eecd1cc3.zip FreeBSD-src-3d3e8a124ca6d5dea19fd3ac9a0b35a8eecd1cc3.tar.gz |
MFstable/11 r305271:
MFC r303576:
Conditionalize code which defines sysctls per _KERNEL #ifdef guard
This resolves several issues when compiling libzpool (userspace library), i.e.
-Wimplicit-function-declaration and -Wmissing-declarations issues.
Tested with: clang 3.8.1, gcc 4.2.1, gcc 5.3.0
Diffstat (limited to 'sys/cddl/contrib/opensolaris/uts/common/fs/zfs/vdev_queue.c')
-rw-r--r-- | sys/cddl/contrib/opensolaris/uts/common/fs/zfs/vdev_queue.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/vdev_queue.c b/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/vdev_queue.c index a1d1d79..55405b7 100644 --- a/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/vdev_queue.c +++ b/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/vdev_queue.c @@ -176,6 +176,7 @@ int zfs_vdev_read_gap_limit = 32 << 10; int zfs_vdev_write_gap_limit = 4 << 10; #ifdef __FreeBSD__ +#ifdef _KERNEL SYSCTL_DECL(_vfs_zfs_vdev); TUNABLE_INT("vfs.zfs.vdev.async_write_active_min_dirty_percent", @@ -283,6 +284,7 @@ sysctl_zfs_async_write_active_max_dirty_percent(SYSCTL_HANDLER_ARGS) return (0); } #endif +#endif int vdev_queue_offset_compare(const void *x1, const void *x2) |