From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andrew Rybchenko Subject: [PATCH] net/af_packet: fix build failure because of unused parameter Date: Mon, 25 Sep 2017 07:50:06 +0100 Message-ID: <1506322206-30233-1-git-send-email-arybchenko@solarflare.com> Mime-Version: 1.0 Content-Type: text/plain Cc: Ferruh Yigit , Chas Williams To: Return-path: Received: from dispatch1-us1.ppe-hosted.com (dispatch1-us1.ppe-hosted.com [148.163.129.52]) by dpdk.org (Postfix) with ESMTP id 7188F101B for ; Mon, 25 Sep 2017 08:50:14 +0200 (CEST) List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Failure happens on build using: gcc (GCC) 4.8.5 20150623 (Red Hat 4.8.5-4) Fixes: 0d16c17ae7a4 ("net/af_packet: make qdisc bypass configurable") Signed-off-by: Andrew Rybchenko --- May be the right solution in fact remove PACKET_QDISC_BYPASS conditional completely. If below solution is accepted, feel free to squash it into the original patch. drivers/net/af_packet/rte_eth_af_packet.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/net/af_packet/rte_eth_af_packet.c b/drivers/net/af_packet/rte_eth_af_packet.c index 8089eda..541302c 100644 --- a/drivers/net/af_packet/rte_eth_af_packet.c +++ b/drivers/net/af_packet/rte_eth_af_packet.c @@ -707,6 +707,8 @@ rte_pmd_init_internals(struct rte_vdev_device *dev, pair->value); goto error; } +#else + RTE_SET_USED(qdisc_bypass); #endif rc = setsockopt(qsockfd, SOL_PACKET, PACKET_RX_RING, req, sizeof(*req)); -- 2.7.4