From 13ff72ba0af1ea52d8d67bb802c66b9f214af42c Mon Sep 17 00:00:00 2001 From: George Amanakis Date: Tue, 28 Feb 2023 23:03:52 +0100 Subject: [PATCH] Revert zfeature_active() to static Commit 34ce4c4 made zfeature_active() non-static. This is not required. Reviewed-by: Richard Yao Reviewed-by: Brian Behlendorf Reviewed-by: Brian Atkinson Signed-off-by: George Amanakis Closes #14546 --- include/sys/dsl_dataset.h | 1 - module/zfs/dsl_dataset.c | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/include/sys/dsl_dataset.h b/include/sys/dsl_dataset.h index b0d8c7994c..3450527af7 100644 --- a/include/sys/dsl_dataset.h +++ b/include/sys/dsl_dataset.h @@ -372,7 +372,6 @@ int dsl_dataset_rename_snapshot(const char *fsname, const char *oldsnapname, const char *newsnapname, boolean_t recursive); int dsl_dataset_snapshot_tmp(const char *fsname, const char *snapname, minor_t cleanup_minor, const char *htag); -boolean_t zfeature_active(spa_feature_t f, void *arg); blkptr_t *dsl_dataset_get_blkptr(dsl_dataset_t *ds); diff --git a/module/zfs/dsl_dataset.c b/module/zfs/dsl_dataset.c index 3cc7d68ebc..1fa73e8378 100644 --- a/module/zfs/dsl_dataset.c +++ b/module/zfs/dsl_dataset.c @@ -1039,7 +1039,7 @@ dsl_dataset_has_owner(dsl_dataset_t *ds) return (rv); } -boolean_t +static boolean_t zfeature_active(spa_feature_t f, void *arg) { switch (spa_feature_table[f].fi_type) {