summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Macy <[email protected]>2019-10-31 10:09:01 -0700
committerBrian Behlendorf <[email protected]>2019-10-31 10:09:01 -0700
commit59055a0164ac5e7dfd690533d39fa9a941204a37 (patch)
treee3452cf6eb2a033f025670826569fe663837498d
parent2a3aa5a109bffb6cd350bb9e978292358c104f8f (diff)
Include prototypes for vdev_initialize
Address two prototype related warnings emitted by clang. Reviewed-by: Brian Behlendorf <[email protected]> Reviewed-by: Igor Kozhukhov <[email protected]> Signed-off-by: Matt Macy <[email protected]> Closes #9535
-rw-r--r--module/zfs/vdev_initialize.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/module/zfs/vdev_initialize.c b/module/zfs/vdev_initialize.c
index a27ab3c25..3e691c7f5 100644
--- a/module/zfs/vdev_initialize.c
+++ b/module/zfs/vdev_initialize.c
@@ -32,6 +32,7 @@
#include <sys/dsl_synctask.h>
#include <sys/zap.h>
#include <sys/dmu_tx.h>
+#include <sys/vdev_initialize.h>
/*
* Value that is written to disk during initialization.
@@ -424,7 +425,7 @@ vdev_initialize_load(vdev_t *vd)
* Convert the logical range into a physical range and add it to our
* avl tree.
*/
-void
+static void
vdev_initialize_range_add(void *arg, uint64_t start, uint64_t size)
{
vdev_t *vd = arg;