You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
libnvme: move fabrics-only helpers to util-fabrics.c
libnvmf_exat_ptr_next(), libnvmf_getifaddrs() (renamed from
libnvme_getifaddrs()), and the nvmf_exat_len()/nvmf_exat_size()
static inlines are only meaningful in fabrics-capable builds.
Moving them out of util.c and private.h into util-fabrics.c and
private-fabrics.h keeps the fabrics footprint contained and ensures
PCIe-only/embedded builds do not pull in this code.
While at it, simplify the util.c include guard from:
#if defined(HAVE_NETDB) || defined(CONFIG_FABRICS)
to:
#ifdef HAVE_NETDB
since CONFIG_FABRICS was only needed for libnvme_getifaddrs(), which
is now in util-fabrics.c.
Signed-off-by: Martin Belanger <[email protected]>
Assisted-by: Claude Sonnet 4.6 <[email protected]>
0 commit comments