From mboxrd@z Thu Jan 1 00:00:00 1970 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) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=6wind-com.20150623.gappssmtp.com; s=20150623; h=from:to:subject:date:message-id:in-reply-to:references; bh=+6e6XQYZP0aFnMIz4iJb9ZxdcQkChavxg5SrMayNPr0=; b=O+jEVPLry8HkYnCqyBC3SBMlP9W1leXFwFuAvjxSEpaiElnWvev3BH8LPwQQXjNTwA FR5PuM9XzwFAvl1x5z82xGHKR1p/dNYxfThkFU0JgJs4L603OK701bdVp7+ae3UFeRUZ 3umFW3h+2mXMIYdFN1WnaQvSX2YS4WK4pasiqXvZ0edz5hh75booIemq8P3PzXgjGLbO 6x2ZIfAzVKDHecmFLy6NpLxmobODfK/2CWsjFPROakqStdTY/8BHm8ayfiH2YqXtsE9E JdEQYbnNDh+IjGqqc6IGvJCOmw2INk7LhDwuVCYPRCRb/NCUx/AXsbZvF0XOWoXARhHZ kB+Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references; bh=+6e6XQYZP0aFnMIz4iJb9ZxdcQkChavxg5SrMayNPr0=; b=bEdruVsZpojD3Okx1EVtyDSur844O3XtjvdvSKW/M2iRBGyQ8yPInGjtkgtipzp12z ntMZrXDrya+vusI6idE4thWvqd3IrgVTUEfJ42tOAfidPlRKvdxAeppJmixCFuYYWraB 7JQkyEBNxRigrNJkIhyAxwYrRltJR321epy5NaT33LZ3KuOnYFAhvX93ryP5a3zF05Ew vvL4obx28DOIZn1fLqY0N/2yi9mPDCNHGokD0PY9uUtEQnPSjkt2/q+qbB+HRhtIONJz RkHc8yKnIozr7X74FvC6WAjWsxUsELc1dVUsFvPHlOW/oMgG5K4AtkpDj1qhjV9O+rq8 tnRQ== X-Gm-Message-State: AG10YOQ6Lh7IcIEBzRk/wMDryVLVsne0KGUsf0WnqOZ1MsPYVnzj5FgdPiiK6Fy/rDkXMkuy X-Received: by 10.28.222.68 with SMTP id v65mr17701107wmg.66.1455605267393; 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) From: Thomas Monjalon To: dev@dpdk.org Date: Tue, 16 Feb 2016 07:46:07 +0100 Message-Id: <1455605170-16137-2-git-send-email-thomas.monjalon@6wind.com> X-Mailer: git-send-email 2.7.0 In-Reply-To: <1455605170-16137-1-git-send-email-thomas.monjalon@6wind.com> References: <1455605170-16137-1-git-send-email-thomas.monjalon@6wind.com> Subject: [dpdk-dev] [PATCH v2 1/4] examples/l3fwd: fix build without SSE4.1 X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 16 Feb 2016 06:47:47 -0000 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