module: zfs: linux: fix unused, remove argsused
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz> Closes #12844
This commit is contained in:
parent
dac85132c6
commit
66cd33e09b
|
@ -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;
|
||||
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue