From 5fae33e04771e255f3dba57263fd06eb68bd38b5 Mon Sep 17 00:00:00 2001 From: Tino Reichardt Date: Thu, 28 Jul 2022 23:19:41 +0200 Subject: [PATCH] FreeBSD compile fix The file module/os/freebsd/zfs/zfs_ioctl_compat.c fails compiling because of this error: 'static' is not at beginning of declaration This commit fixes the three places within that file. Reviewed-by: Alexander Motin Reviewed-by: Brian Behlendorf Signed-off-by: Tino Reichardt Closes #13702 --- module/os/freebsd/zfs/zfs_ioctl_compat.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/module/os/freebsd/zfs/zfs_ioctl_compat.c b/module/os/freebsd/zfs/zfs_ioctl_compat.c index 81967bed7..d495cc0dc 100644 --- a/module/os/freebsd/zfs/zfs_ioctl_compat.c +++ b/module/os/freebsd/zfs/zfs_ioctl_compat.c @@ -125,7 +125,7 @@ enum zfs_ioc_legacy { ZFS_IOC_LEGACY_LAST }; -unsigned static long zfs_ioctl_legacy_to_ozfs_[] = { +static unsigned long zfs_ioctl_legacy_to_ozfs_[] = { ZFS_IOC_POOL_CREATE, /* 0x00 */ ZFS_IOC_POOL_DESTROY, /* 0x01 */ ZFS_IOC_POOL_IMPORT, /* 0x02 */ @@ -208,7 +208,7 @@ unsigned static long zfs_ioctl_legacy_to_ozfs_[] = { ZFS_IOC_POOL_INITIALIZE, /* 0x4d:0x4f */ }; -unsigned static long zfs_ioctl_ozfs_to_legacy_common_[] = { +static unsigned long zfs_ioctl_ozfs_to_legacy_common_[] = { ZFS_IOC_POOL_CREATE, /* 0x00 */ ZFS_IOC_POOL_DESTROY, /* 0x01 */ ZFS_IOC_POOL_IMPORT, /* 0x02 */ @@ -297,7 +297,7 @@ unsigned static long zfs_ioctl_ozfs_to_legacy_common_[] = { ZFS_IOC_LEGACY_NONE, /* ZFS_IOC_WAIT_FS */ }; -unsigned static long zfs_ioctl_ozfs_to_legacy_platform_[] = { +static unsigned long zfs_ioctl_ozfs_to_legacy_platform_[] = { ZFS_IOC_LEGACY_NONE, /* ZFS_IOC_EVENTS_NEXT */ ZFS_IOC_LEGACY_NONE, /* ZFS_IOC_EVENTS_CLEAR */ ZFS_IOC_LEGACY_NONE, /* ZFS_IOC_EVENTS_SEEK */