module: zfs: multilist: shim out multilist_d2l()

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz>
Closes #12844
This commit is contained in:
наб 2021-12-21 18:44:04 +01:00 committed by Brian Behlendorf
parent 89495a427f
commit 2c1988e96f
1 changed files with 2 additions and 0 deletions

View File

@ -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
/*