From 2c1988e96f0825411ca333f0acc45c80d1cc6dd4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=BD=D0=B0=D0=B1?= Date: Tue, 21 Dec 2021 18:44:04 +0100 Subject: [PATCH] module: zfs: multilist: shim out multilist_d2l() 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/zfs/multilist.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/module/zfs/multilist.c b/module/zfs/multilist.c index 8bbc9b376a..bad1674d29 100644 --- a/module/zfs/multilist.c +++ b/module/zfs/multilist.c @@ -36,6 +36,8 @@ multilist_d2l(multilist_t *ml, void *obj) { return ((multilist_node_t *)((char *)obj + ml->ml_offset)); } +#else +#define multilist_d2l(ml, obj) ((void) sizeof (ml), (void) sizeof (obj), NULL) #endif /*