summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorKyle Evans <[email protected]>2020-07-23 19:41:48 -0500
committerGitHub <[email protected]>2020-07-23 17:41:48 -0700
commitbfafe1780a61a1be0a84273c7155708de003033e (patch)
tree50722a238c8ee529e44fbba9b590a0697f235d4a /include
parentf7a68f99d07ffb231046d2bae5360b66957ca9a7 (diff)
Annotate unused parameters on inline definitions as such
* libspl: umem: These are obviously and intentionally unused; annotate them as such to appease -Wunused-parameter builds that include this header. * sys/dmu.h: In this case, clear_on_evict_dbufp is only used for ZFS_DEBUG builds, so annotate it as __maybe_unused to appease -Wunused-parameter. Reviewed-By: Brian Behlendorf <[email protected]> Signed-off-by: Kyle Evans <[email protected]> Closes #10606
Diffstat (limited to 'include')
-rw-r--r--include/sys/dmu.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/sys/dmu.h b/include/sys/dmu.h
index 5174bdc45..d6efe2595 100644
--- a/include/sys/dmu.h
+++ b/include/sys/dmu.h
@@ -669,7 +669,8 @@ typedef struct dmu_buf_user {
/*ARGSUSED*/
static inline void
dmu_buf_init_user(dmu_buf_user_t *dbu, dmu_buf_evict_func_t *evict_func_sync,
- dmu_buf_evict_func_t *evict_func_async, dmu_buf_t **clear_on_evict_dbufp)
+ dmu_buf_evict_func_t *evict_func_async,
+ dmu_buf_t **clear_on_evict_dbufp __maybe_unused)
{
ASSERT(dbu->dbu_evict_func_sync == NULL);
ASSERT(dbu->dbu_evict_func_async == NULL);