]> git.proxmox.com Git - mirror_zfs.git/commitdiff
linux: libzfs: util: don't fallthrough to to end-of-switch
authorнаб <nabijaczleweli@nabijaczleweli.xyz>
Tue, 28 Jun 2022 21:27:44 +0000 (23:27 +0200)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Wed, 29 Jun 2022 21:08:59 +0000 (14:08 -0700)
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 <behlendorf1@llnl.gov>
Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz>
Closes #13348

lib/libzfs/os/linux/libzfs_util_os.c

index ec62b003c9b58df43955795cc501c021e237a8f4..712f8094755cae6cf02c3cce22197ad657dac1b8 100644 (file)
@@ -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);