From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-f50.google.com (mail-wm0-f50.google.com [74.125.82.50]) by dpdk.org (Postfix) with ESMTP id 694799A8A for ; Wed, 3 Feb 2016 19:58:02 +0100 (CET) Received: by mail-wm0-f50.google.com with SMTP id l66so177856415wml.0 for ; Wed, 03 Feb 2016 10:58:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=6wind-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=VVj17E1hty3rFiBJUCgkCShToxMPfv4wWMh6vsEhObY=; b=AYDRWMAr2y7gBqe9GlUXWB2bb0Ep4DfgFUGX8z5cB88z07gDgfTi/uxP9MJyJ+bVLo GpRs/TQI1srlX0RWcZaH/Hdo7z4m6w5Gg8JXt/5Lah/bTpbrU8gT3eztGvRL+oApr2xZ zY4zh/TBEsr5YAxLWbYs99/g+I+tIBEUplFim6bfzR3h2edaxU2ayg7qF7hlk4X+C2y+ YzAJGSfJ9ZXFIr9iNK+o4vSoAfyD6rQg5m3MUkyKEztzDyFNx1sICGFoWkQwglcE6hW4 Rwro6biKZPvoR7BFZBPnUDVynDA5JISPBgxuXD+P+hnz4DkIm3GOSclN7MHdgTi/83pc BPxQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=VVj17E1hty3rFiBJUCgkCShToxMPfv4wWMh6vsEhObY=; b=YwQD/pzMv7rnA4ai9WtbNS0oxQFj/+j57zt2zQKxdeMwBHi4oMsk4C9E8u0eGqq4K3 1TAhFsMz13rubJ+ywF1szA+LjKCL/Jtf/bilTjsJaLGWw3WjVL9DTdkzEDzDs5yMfsrW T19k/rLKSS6rHWGeQl4LRUDyoykygADletehjiVnySN53i3Eny0C7Bauzu8oGq74be83 SBcaLvM+QfIDbZYK+6sbs4kTCPXvoR8CPFZI06qungMnuB3OuoI2jJ/vsOJUs04QxYsR ppz6F/BK53ma1g31zd9WIOcsLcOEXtGYCDIQf7huNDu3PC8E1Hm0Oi4m0rSOtuuPZXA+ 8t4w== X-Gm-Message-State: AG10YOR+uEEl8ONRwxdPzx46ipub0AIONTObjyjfUcdPPCK3kYvBlC+xZc1PObm/dTAnO+dF X-Received: by 10.28.87.21 with SMTP id l21mr24849087wmb.8.1454525882300; Wed, 03 Feb 2016 10:58:02 -0800 (PST) Received: from localhost.localdomain (136-92-190-109.dsl.ovh.fr. [109.190.92.136]) by smtp.gmail.com with ESMTPSA id qs1sm7823424wjc.2.2016.02.03.10.58.00 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 03 Feb 2016 10:58:01 -0800 (PST) From: Thomas Monjalon To: dev@dpdk.org Date: Wed, 3 Feb 2016 19:56:38 +0100 Message-Id: <1454525799-25552-3-git-send-email-thomas.monjalon@6wind.com> X-Mailer: git-send-email 2.7.0 In-Reply-To: <1454525799-25552-1-git-send-email-thomas.monjalon@6wind.com> References: <1454525799-25552-1-git-send-email-thomas.monjalon@6wind.com> Subject: [dpdk-dev] [PATCH 2/3] 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: Wed, 03 Feb 2016 18:58:02 -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 --- 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 21a5782..a93497d 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