From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-f67.google.com (mail-wm0-f67.google.com [74.125.82.67]) by dpdk.org (Postfix) with ESMTP id EA2871B284 for ; Thu, 21 Dec 2017 14:00:12 +0100 (CET) Received: by mail-wm0-f67.google.com with SMTP id 64so15618018wme.3 for ; Thu, 21 Dec 2017 05:00:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=6wind-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=qjBd67UUjrXDea4UhyfpEmzTZuJiyk+Gf9Odp+PkaAk=; b=RFkvEM5KoYq6AEHCntRhQ/536/uu2AWBzAlo3NqOsD9Q4Vyvmtd1gv8kOHoLuexHWT YFy74YypNa5DUD3TR9jbfjqriiITA/dT9kdAhIM/403t2/C6r3DxyMQjMlXwtLrB8yJx N7L8hZNNKngplinrwOSUuiBlQWo+k9Pho90BCtJ/5PlNe9WFV8994FVMRh6QJgk9kdSD +hWdZMs5cjkSBjIgNNlgJ4F4d83wUAU5DUwA496rxBGCUCBmAUoCq1ezZTkdFR34YyXy oqswo7Yd2bf7Oa6ypIof24jxKi2zKOt3321Y2YRnW+bGZO0B7tBdOcD42xyxqqRq/4Cf 2QIQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=qjBd67UUjrXDea4UhyfpEmzTZuJiyk+Gf9Odp+PkaAk=; b=snSiTcLDg53egnMpzvK6iVnjMphDS8+kglcXPCtNXiBpNbY+SRlHfTnNcohFd6+Yb1 ZicxXqFWqDBOH4aLPfHQnnDpbsTMxPaZPH3BtaxvRbcq6oRMGf0i/fVvrH7riLDO5tJw PePbZNmhmeOn1PShbyz05MF3jP0Txrd0GNbmqmjY4SemzC8nYqR/arH1HmiD/HqIJZKT 8kSk31ZvsDW3W7Hwk6fNwnMTEYbClKUMBP/QeeZXLu9uo2jOs36JySxWhVkJZziwce8p 9tNyw0DYB0ZNFRGBA3FUx8M6p/LF0232/VUwhg0XpP2Y00wLjfJ6gJ8PeJtaOGQ/7GUL HRuw== X-Gm-Message-State: AKGB3mIqlGFtSkhyHB6OPYXwWZurC277x8vFHWmWhXoLQqacdEbVf/e0 UU8x25L6jpPNo4UzEr+dgoy69S+y X-Google-Smtp-Source: ACJfBovnR0uGVATraZZZ30SZKhsDX+6lIi78L7qYV1iub16HXwxNZUPfHFta2n0DCOXbJmste0W4kA== X-Received: by 10.80.205.88 with SMTP id d24mr10386264edj.7.1513861212454; Thu, 21 Dec 2017 05:00:12 -0800 (PST) Received: from 6wind.com (host.78.145.23.62.rev.coltfrance.com. [62.23.145.78]) by smtp.gmail.com with ESMTPSA id t23sm17730397edb.70.2017.12.21.05.00.11 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 21 Dec 2017 05:00:11 -0800 (PST) Date: Thu, 21 Dec 2017 13:59:59 +0100 From: Adrien Mazarguil To: dev@dpdk.org Cc: Ferruh Yigit , Bernard Iremonger Message-ID: <20171221122458.811-4-adrien.mazarguil@6wind.com> References: <20171221122458.811-1-adrien.mazarguil@6wind.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20171221122458.811-1-adrien.mazarguil@6wind.com> X-Mailer: git-send-email 2.11.0 Subject: [dpdk-dev] [PATCH v1 3/6] flow_classify: fix issue in exported header X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 21 Dec 2017 13:00:13 -0000 Reported by check-includes.sh: [...]/rte_flow_classify.h:85:47: error: ISO C does not permit named variadic macros [-Werror=variadic-macros] #define RTE_FLOW_CLASSIFY_LOG(level, fmt, args...) \ ^ Fixes: be41ac2a330f ("flow_classify: introduce flow classify library") Cc: Ferruh Yigit Cc: Bernard Iremonger Signed-off-by: Adrien Mazarguil --- lib/librte_flow_classify/rte_flow_classify.h | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/lib/librte_flow_classify/rte_flow_classify.h b/lib/librte_flow_classify/rte_flow_classify.h index 1211873a1..e14bc787e 100644 --- a/lib/librte_flow_classify/rte_flow_classify.h +++ b/lib/librte_flow_classify/rte_flow_classify.h @@ -70,6 +70,7 @@ * with rte_flow_classifier_free() */ +#include #include #include #include @@ -82,9 +83,12 @@ extern "C" { extern int librte_flow_classify_logtype; -#define RTE_FLOW_CLASSIFY_LOG(level, fmt, args...) \ -rte_log(RTE_LOG_ ## level, librte_flow_classify_logtype, "%s(): " fmt, \ - __func__, ## args) +#define RTE_FLOW_CLASSIFY_LOG(level, ...) \ + rte_log(RTE_LOG_ ## level, \ + librte_flow_classify_logtype, \ + RTE_FMT("%s(): " RTE_FMT_HEAD(__VA_ARGS__,), \ + __func__, \ + RTE_FMT_TAIL(__VA_ARGS__,))) /** Opaque data type for flow classifier */ struct rte_flow_classifier; -- 2.11.0