nvme/tcp: mark variable as potentially unused
nvme_tcp_build_iovs() calculates the plen for the iovs, but only uses the calculated value in an assert, so we get set-but-not-used errors in release builds. So mark the variable as unused to squash those errors. Signed-off-by: Jim Harris <james.r.harris@intel.com> Change-Id: Ifdf72faa6182c0fba622da9e5e2a33e3c6bbaf86 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/10125 Community-CI: Broadcom CI <spdk-ci.pdl@broadcom.com> Community-CI: Mellanox Build Bot Reviewed-by: Changpeng Liu <changpeng.liu@intel.com> Reviewed-by: Dong Yi <dongx.yi@intel.com> Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com> Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
This commit is contained in:
parent
bf190e2f52
commit
be2d126fd6
@ -304,7 +304,8 @@ static int
|
||||
nvme_tcp_build_iovs(struct iovec *iov, int iovcnt, struct nvme_tcp_pdu *pdu,
|
||||
bool hdgst_enable, bool ddgst_enable, uint32_t *_mapped_length)
|
||||
{
|
||||
uint32_t hlen, plen;
|
||||
uint32_t hlen;
|
||||
uint32_t plen __attribute__((unused));
|
||||
struct spdk_iov_sgl *sgl;
|
||||
|
||||
if (iovcnt == 0) {
|
||||
|
Loading…
Reference in New Issue
Block a user