From 404601aca07dc44273c1ab33e09067423f97c591 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=BD=D0=B0=D0=B1?= Date: Tue, 28 Jun 2022 23:27:44 +0200 Subject: [PATCH] linux: libzfs: util: don't fallthrough to to end-of-switch MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit lib/libzfs/os/linux/libzfs_util_os.c:262:3: error: fallthrough annotation does not directly precede switch label zfs_fallthrough; ^ ./lib/libspl/include/sys/feature_tests.h:34:26: note: expanded from macro 'zfs_fallthrough' Reviewed-by: Brian Behlendorf Signed-off-by: Ahelenia ZiemiaƄska Closes #13348 --- lib/libzfs/os/linux/libzfs_util_os.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/libzfs/os/linux/libzfs_util_os.c b/lib/libzfs/os/linux/libzfs_util_os.c index ec62b003c..712f80947 100644 --- a/lib/libzfs/os/linux/libzfs_util_os.c +++ b/lib/libzfs/os/linux/libzfs_util_os.c @@ -259,7 +259,7 @@ zfs_userns(zfs_handle_t *zhp, const char *nspath, int attach) "pools can not be namespaced")); return (zfs_error(hdl, EZFS_BADTYPE, errbuf)); case ZFS_TYPE_FILESYSTEM: - zfs_fallthrough; + break; } assert(zhp->zfs_type == ZFS_TYPE_FILESYSTEM);