From: Andy Moreton Date: Fri, 19 Jan 2018 06:47:06 +0000 (+0000) Subject: net/sfc/base: fix unused argument warning X-Git-Tag: spdx-start~50 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=218a16a6dcc58bac115464e979fed6906534a216;p=dpdk.git net/sfc/base: fix unused argument warning The type_data argument to ef10_rx_qcreate is only used in builds with EFSYS_OPT_RX_PACKED_STREAM. note this as an unused argument to avoid warnings in builds without packed stream support. Fixes: b749646dade4 ("net/sfc/base: add function to create packed stream RxQ") Signed-off-by: Andy Moreton Signed-off-by: Andrew Rybchenko --- diff --git a/drivers/net/sfc/base/ef10_rx.c b/drivers/net/sfc/base/ef10_rx.c index 85110eff5e..2bb6705d9d 100644 --- a/drivers/net/sfc/base/ef10_rx.c +++ b/drivers/net/sfc/base/ef10_rx.c @@ -940,7 +940,7 @@ ef10_rx_qcreate( boolean_t want_inner_classes; unsigned int ps_buf_size; - _NOTE(ARGUNUSED(id, erp)) + _NOTE(ARGUNUSED(id, erp, type_data)) EFX_STATIC_ASSERT(EFX_EV_RX_NLABELS == (1 << ESF_DZ_RX_QLABEL_WIDTH)); EFSYS_ASSERT3U(label, <, EFX_EV_RX_NLABELS);