]> granicus.if.org Git - zfs/commitdiff
Fix signature for private functions without header declarations
authorMatthew Macy <mmacy@freebsd.org>
Thu, 17 Oct 2019 01:34:19 +0000 (18:34 -0700)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Thu, 17 Oct 2019 01:34:19 +0000 (18:34 -0700)
Clang will complain if a function has no prior declaration

Reviewed-by: Ryan Moeller <ryan@ixsystems.com>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Matt Macy <mmacy@FreeBSD.org>
Closes #9467

module/zfs/btree.c
module/zfs/dsl_destroy.c

index f099eb67c7592a29a52aef7245d4d5176149a99a..9f69d4b1aebef81f315bec1a98b3d3a2f2570efb 100644 (file)
@@ -59,7 +59,7 @@ int zfs_btree_verify_intensity = 0;
  * A convenience function to silence warnings from memmove's return value and
  * change argument order to src, dest.
  */
-void
+static void
 bmov(const void *src, void *dest, size_t size)
 {
        (void) memmove(dest, src, size);
index ee237a85b8deccd18c9418c28a333c56ebe2fb61..37480c3f7ea69233768bec9ef72648efebf1def3 100644 (file)
@@ -938,7 +938,7 @@ dsl_async_clone_destroy(dsl_dataset_t *ds, dmu_tx_t *tx)
  * Move the bptree into the pool's list of trees to clean up, update space
  * accounting information and destroy the zil.
  */
-void
+static void
 dsl_async_dataset_destroy(dsl_dataset_t *ds, dmu_tx_t *tx)
 {
        uint64_t used, comp, uncomp;