1cfdbd429f
If a platform defines a syscall using a macro (e.g. #define open _open) then wrapping it fails because DEFINE_RETURN_MOCK and MOCK_GET will use the definition to name the ut_ variables, but DEFINE_WRAPPER will use the original name. This result in an undefined reference when linking. Prevent macro expansion of the syscall name by avoiding nested macro calls in DEFINE_WRAPPER. Include the contents of DEFINE_RETURN_MOCK and MOCK_GET directly in DEFINE_WRAPPER. Signed-off-by: Nick Connolly <nick.connolly@mayadata.io> Change-Id: I452857ec7df43f7a1a5f093439c7d5cf4683f8ee Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/9618 Community-CI: Broadcom CI <spdk-ci.pdl@broadcom.com> Community-CI: Mellanox Build Bot Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com> |
||
---|---|---|
.. | ||
accel_engine.h | ||
assert.h | ||
event.h | ||
idxd.h | ||
init.h | ||
lvolstore.h | ||
mock.h | ||
nvme_tcp.h | ||
rdma.h | ||
sgl.h | ||
sock.h | ||
thread.h | ||
uring.h | ||
usdt.h | ||
utf.h | ||
vhost_user.h | ||
virtio.h |