This patch marks rxq with RTE_SET_USED in rx_desc_hlen_type_rss_to_pkt_flags(), when ieee1588 is disabled. Previously a compilation error occurred on unused-parameter.
Fixes: c6c79fa425f1 ("e1000: do not release queue on alloc error") Signed-off-by: Harry van Haaren <harry.van.haaren at intel.com> --- drivers/net/e1000/igb_rxtx.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/net/e1000/igb_rxtx.c b/drivers/net/e1000/igb_rxtx.c index 66bc3f0..d734a19 100644 --- a/drivers/net/e1000/igb_rxtx.c +++ b/drivers/net/e1000/igb_rxtx.c @@ -732,6 +732,8 @@ rx_desc_hlen_type_rss_to_pkt_flags(struct igb_rx_queue *rxq, uint32_t hl_tp_rs) pkt_flags |= ip_pkt_etqf_map[(hl_tp_rs >> 12) & 0x07]; else pkt_flags |= ip_pkt_etqf_map[(hl_tp_rs >> 4) & 0x07]; +#else + RTE_SET_USED(rxq); #endif return pkt_flags; -- 1.9.1