From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: [PATCH v2 1/4] examples/l3fwd: fix build without SSE4.1 Date: Tue, 16 Feb 2016 07:46:07 +0100 Message-ID: <1455605170-16137-2-git-send-email-thomas.monjalon@6wind.com> References: <1455605170-16137-1-git-send-email-thomas.monjalon@6wind.com> To: dev@dpdk.org Return-path: Received: from mail-wm0-f42.google.com (mail-wm0-f42.google.com [74.125.82.42]) by dpdk.org (Postfix) with ESMTP id 78FEE9A9E for ; Tue, 16 Feb 2016 07:47:47 +0100 (CET) Received: by mail-wm0-f42.google.com with SMTP id b205so95377864wmb.1 for ; Mon, 15 Feb 2016 22:47:47 -0800 (PST) Received: from XPS13.localdomain (165.20.90.92.rev.sfr.net. [92.90.20.165]) by smtp.gmail.com with ESMTPSA id c136sm18885928wmd.3.2016.02.15.22.47.45 for (version=TLSv1/SSLv3 cipher=OTHER); Mon, 15 Feb 2016 22:47:46 -0800 (PST) In-Reply-To: <1455605170-16137-1-git-send-email-thomas.monjalon@6wind.com> List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" clang reports this error: examples/l3fwd/main.c:550:1: error: unused function 'send_packetsx4' The function is used only when ENABLE_MULTI_BUFFER_OPTIMIZE is 1. Fixes: 96ff445371e0 ("examples/l3fwd: reorganise and optimize LPM code path") Fixes: 6f1c1e28d98e ("examples/l3fwd: fix build with exact-match enabled") Signed-off-by: Thomas Monjalon Acked-by: Pablo de Lara --- examples/l3fwd/main.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/examples/l3fwd/main.c b/examples/l3fwd/main.c index c35926d..410f72d 100644 --- a/examples/l3fwd/main.c +++ b/examples/l3fwd/main.c @@ -545,7 +545,8 @@ send_single_packet(struct rte_mbuf *m, uint8_t port) return 0; } -#if (APP_LOOKUP_METHOD == APP_LOOKUP_LPM) +#if ((APP_LOOKUP_METHOD == APP_LOOKUP_LPM) && \ + (ENABLE_MULTI_BUFFER_OPTIMIZE == 1)) static inline __attribute__((always_inline)) void send_packetsx4(struct lcore_conf *qconf, uint8_t port, struct rte_mbuf *m[], uint32_t num) -- 2.7.0