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);