From 2373bd1e91973818b1f60abf1c7cd029ef9329b0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=BD=D0=B0=D0=B1?= Date: Sat, 19 Mar 2022 00:53:05 +0100 Subject: [PATCH] module: zfs: arc: hdr_full_crypt_dest: drop unevaulated-only variable MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This explodes as -Wunused-variable on GCC 8.5.0, despite it being used, just not in an evaluated context Reviewed-by: Matthew Ahrens Reviewed-by: Ryan Moeller Reviewed-by: Brian Behlendorf Signed-off-by: Ahelenia ZiemiaƄska Closes #13195 --- module/zfs/arc.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/module/zfs/arc.c b/module/zfs/arc.c index 08df2870f4b2..b5c9b3edcaca 100644 --- a/module/zfs/arc.c +++ b/module/zfs/arc.c @@ -1204,11 +1204,11 @@ hdr_full_dest(void *vbuf, void *unused) static void hdr_full_crypt_dest(void *vbuf, void *unused) { - (void) unused; - arc_buf_hdr_t *hdr = vbuf; + (void) vbuf, (void) unused; hdr_full_dest(vbuf, unused); - arc_space_return(sizeof (hdr->b_crypt_hdr), ARC_SPACE_HDRS); + arc_space_return(sizeof (((arc_buf_hdr_t *)NULL)->b_crypt_hdr), + ARC_SPACE_HDRS); } static void