From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wg0-f41.google.com (mail-wg0-f41.google.com [74.125.82.41]) by dpdk.org (Postfix) with ESMTP id D4F267F2D for ; Wed, 17 Dec 2014 13:55:33 +0100 (CET) Received: by mail-wg0-f41.google.com with SMTP id y19so20181016wgg.28 for ; Wed, 17 Dec 2014 04:55:33 -0800 (PST) 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=N255hHLOOnEZqmZ/OSodd/Wi9HgMV5iD4kRPeA2dG+I=; b=YPj3chCUCGVO9BDOSbVkp7gwjHWwPngluwyZo/3WVlloViWECmqDq4zvoVgE0jiReO x4pDj3n+Kt7C2gIU0Ix3DGjvYkUaey+UA1TYvOvP0FNapgWjitlKhR2dpm7XPGN333n3 NamFn+3TW9YfSDH9PkzaAl10STA81+51DsdtN6UWx4Oxka24mpalGFT1PxgJmUQ2E//E L5ju7opWrO0ReyS20WSFCucaLNvfQAJHOHchsZd2p9gGSwPtE8mI130uBFx3l8zAWmZD zCLLkb1NzQ9UTQ8QA/Y2aRb2HUJY79P6fhkK7hpP2gqYqPTc4YnIXvd9m9k9vv2dLGJG Osug== X-Gm-Message-State: ALoCoQk5HnRy6G9wZl3psVpwtVS+QPXvVAXQpxrpBCjfq4AAfxTiqJBz+KqjcBv5loFUefQA8bS2 X-Received: by 10.180.73.206 with SMTP id n14mr14471380wiv.60.1418820933706; Wed, 17 Dec 2014 04:55:33 -0800 (PST) Received: from glumotte.dev.6wind.com (guy78-3-82-239-227-177.fbx.proxad.net. [82.239.227.177]) by mx.google.com with ESMTPSA id gs10sm6948929wib.12.2014.12.17.04.55.32 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 17 Dec 2014 04:55:33 -0800 (PST) From: Olivier Matz To: dev@dpdk.org Date: Wed, 17 Dec 2014 13:55:22 +0100 Message-Id: <1418820925-20318-3-git-send-email-olivier.matz@6wind.com> X-Mailer: git-send-email 2.1.3 In-Reply-To: <1418820925-20318-1-git-send-email-olivier.matz@6wind.com> References: <1418820925-20318-1-git-send-email-olivier.matz@6wind.com> Subject: [dpdk-dev] [PATCH 2/5] examples/l3fwd: fix compilation with clang 3.5 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, 17 Dec 2014 12:55:34 -0000 Fix the following error: error: unused function 'l3fwd_simple_forward' The l3fwd_simple_forward() is maybe unused, due to compilation options (APP_LOOKUP_METHOD, ENABLE_MULTI_BUFFER_OPTIMIZE). As the combinatorial is quite big, it looks simpler to add the __attribute__((unused)) on this function, so that the compiler does not complain. Signed-off-by: Olivier Matz --- examples/l3fwd/main.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/examples/l3fwd/main.c b/examples/l3fwd/main.c index bf0fcdb..918f2cb 100644 --- a/examples/l3fwd/main.c +++ b/examples/l3fwd/main.c @@ -724,9 +724,11 @@ get_ipv6_dst_port(void *ipv6_hdr, uint8_t portid, lookup6_struct_t * ipv6_l3fwd } #endif +static inline void l3fwd_simple_forward(struct rte_mbuf *m, uint8_t portid, + struct lcore_conf *qconf) __attribute__((unused)); + #if ((APP_LOOKUP_METHOD == APP_LOOKUP_EXACT_MATCH) && \ (ENABLE_MULTI_BUFFER_OPTIMIZE == 1)) -static inline void l3fwd_simple_forward(struct rte_mbuf *m, uint8_t portid, struct lcore_conf *qconf); #define MASK_ALL_PKTS 0xf #define EXECLUDE_1ST_PKT 0xe -- 2.1.3