Skip to content

Commit

Permalink
FreeBSD compile fix
Browse files Browse the repository at this point in the history
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 <mav@FreeBSD.org>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Tino Reichardt <milky-zfs@mcmilk.de>
Closes openzfs#13702
  • Loading branch information
mcmilk authored and andrewc12 committed Sep 23, 2022
1 parent 4cb33d9 commit 443547f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions module/os/freebsd/zfs/zfs_ioctl_compat.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down Expand Up @@ -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 */
Expand Down Expand Up @@ -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 */
Expand Down

0 comments on commit 443547f

Please sign in to comment.