From 66cd33e09b1f389e5602a9c496868489b29312ec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=BD=D0=B0=D0=B1?= Date: Sun, 12 Dec 2021 16:04:06 +0100 Subject: [PATCH] module: zfs: linux: fix unused, remove argsused MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Reviewed-by: Brian Behlendorf Signed-off-by: Ahelenia ZiemiaƄska Closes #12844 --- module/os/linux/zfs/abd_os.c | 2 ++ module/os/linux/zfs/arc_os.c | 3 ++- module/os/linux/zfs/zfs_debug.c | 1 + 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/module/os/linux/zfs/abd_os.c b/module/os/linux/zfs/abd_os.c index a8f1ea7ca..372c1dadc 100644 --- a/module/os/linux/zfs/abd_os.c +++ b/module/os/linux/zfs/abd_os.c @@ -205,6 +205,7 @@ abd_alloc_struct_impl(size_t size) * In Linux we do not use the size passed in during ABD * allocation, so we just ignore it. */ + (void) size; abd_t *abd = kmem_cache_alloc(abd_cache, KM_PUSHPAGE); ASSERT3P(abd, !=, NULL); ABDSTAT_INCR(abdstat_struct_size, sizeof (abd_t)); @@ -838,6 +839,7 @@ abd_t * abd_get_offset_scatter(abd_t *abd, abd_t *sabd, size_t off, size_t size) { + (void) size; int i = 0; struct scatterlist *sg = NULL; diff --git a/module/os/linux/zfs/arc_os.c b/module/os/linux/zfs/arc_os.c index f96cd1271..3dc0b7106 100644 --- a/module/os/linux/zfs/arc_os.c +++ b/module/os/linux/zfs/arc_os.c @@ -398,11 +398,11 @@ param_set_arc_int(const char *buf, zfs_kernel_param_t *kp) } #ifdef CONFIG_MEMORY_HOTPLUG -/* ARGSUSED */ static int arc_hotplug_callback(struct notifier_block *self, unsigned long action, void *arg) { + (void) self, (void) arg; uint64_t allmem = arc_all_memory(); if (action != MEM_ONLINE) return (NOTIFY_OK); @@ -458,6 +458,7 @@ arc_available_memory(void) int arc_memory_throttle(spa_t *spa, uint64_t reserve, uint64_t txg) { + (void) spa, (void) reserve, (void) txg; return (0); } diff --git a/module/os/linux/zfs/zfs_debug.c b/module/os/linux/zfs/zfs_debug.c index 98c9923d5..a32a4663e 100644 --- a/module/os/linux/zfs/zfs_debug.c +++ b/module/os/linux/zfs/zfs_debug.c @@ -84,6 +84,7 @@ zfs_dbgmsg_purge(int max_size) static int zfs_dbgmsg_clear(procfs_list_t *procfs_list) { + (void) procfs_list; mutex_enter(&zfs_dbgmsgs.pl_lock); zfs_dbgmsg_purge(0); mutex_exit(&zfs_dbgmsgs.pl_lock);