From 09724daff53b6036dbf585402fe3da13475b0955 Mon Sep 17 00:00:00 2001 From: Andrew Innes Date: Wed, 19 Oct 2022 15:05:15 +0800 Subject: [PATCH] Windows: Fix declarations of non-global variables Signed-off-by: Andrew Innes --- module/os/windows/zfs/abd_os.c | 2 +- module/os/windows/zfs/zfs_debug.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/module/os/windows/zfs/abd_os.c b/module/os/windows/zfs/abd_os.c index bdf16dcaf21d..8a4e06b0d1a4 100644 --- a/module/os/windows/zfs/abd_os.c +++ b/module/os/windows/zfs/abd_os.c @@ -70,7 +70,7 @@ static abd_stats_t abd_stats = { { "linear_data_size", KSTAT_DATA_UINT64 }, }; -struct { +static struct { wmsum_t abdstat_struct_size; wmsum_t abdstat_scatter_cnt; wmsum_t abdstat_scatter_data_size; diff --git a/module/os/windows/zfs/zfs_debug.c b/module/os/windows/zfs/zfs_debug.c index 9254a6784bc3..76ba385fee0d 100644 --- a/module/os/windows/zfs/zfs_debug.c +++ b/module/os/windows/zfs/zfs_debug.c @@ -36,7 +36,7 @@ typedef struct zfs_dbgmsg { list_t zfs_dbgmsgs; uint_t zfs_dbgmsg_size; kmutex_t zfs_dbgmsgs_lock; -uint_t zfs_dbgmsg_maxsize = 4<<20; /* 4MB */ +static uint_t zfs_dbgmsg_maxsize = 4<<20; /* 4MB */ kstat_t *zfs_dbgmsg_kstat; int zfs_dbgmsg_enable = 1;