From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-f49.google.com (mail-wm0-f49.google.com [74.125.82.49]) by dpdk.org (Postfix) with ESMTP id 0206E47CD for ; Wed, 26 Apr 2017 14:07:36 +0200 (CEST) Received: by mail-wm0-f49.google.com with SMTP id m123so2020003wma.0 for ; Wed, 26 Apr 2017 05:07:36 -0700 (PDT) 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=pxhc5efkyn8w3ELJHcwSY9Vz/c6IwuTsGDdTOqVvOTM=; b=SggEBETbmC80Czub6xICiF9iKgGEM3aULb4hOs64T783tSsu2N6SF0TnnX4i2ou0cu oajk57mTra/IYMp8UGZFB1kHdatmyh045+rOL3bUUoHFxmaKJ0gAK3FrhiN/xrc5oM93 dEHXjXecsZTb31h+v+/trwEO2PYy7NK/jdd1AI41ORdxgg/93I+6Ia1IY0UUvXESaTt1 W/Q52ipOPCqBEv8RR7nCQgLGprOcQIBNsR5xv/T7XFzevQe1j7eGVpgBgKP9ZrKlPzuI fy012hfzawd1Fe6jbBJzeSXWV0yeqWpBti6F7uk30YU9BbmUrJEIk2oDGXOY7SliPN0l IAUA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=pxhc5efkyn8w3ELJHcwSY9Vz/c6IwuTsGDdTOqVvOTM=; b=OFsu4X3OZg7YRwN6sqEeaoJSKFL3tXZSE7au+9ZtHmOBd1Qu1GnBWe5xOqbj4zvagd 9f35SV77rtk+BgM2puwlnbXuCscry5vphkuwmz3iZ6UB4x3wXPG1ssOvazcemFfANy4r Px7I/OOeK4rUyU7EYd63MlB9MorW0nfSORfKidyEcU/M1ukZwwCY3GsYlR651BT16pHD ooh47q6IKO18Aycke5YGTFq7eWoDZvp9F/BrrRCag8pbK96v1U3ck31172lkOVa7t992 APaqSc4MEzyQJUsGWpyAczMOPNUDNfFpLqz3uMcMhuoajyrGS2GT1n4Lk2Yi0XVSuyCK qYeQ== X-Gm-Message-State: AN3rC/7/guIuf/j/FtFV86dWMJHDxbP0h1ZMT0OCdAjlFozBt3J6zHa4 8BgjEjqNPrgrdxiR X-Received: by 10.28.24.71 with SMTP id 68mr622658wmy.64.1493208456434; Wed, 26 Apr 2017 05:07:36 -0700 (PDT) Received: from 6wind.com (host.78.145.23.62.rev.coltfrance.com. [62.23.145.78]) by smtp.gmail.com with ESMTPSA id f25sm27129wrf.13.2017.04.26.05.07.35 (version=TLS1_2 cipher=AES128-SHA bits=128/128); Wed, 26 Apr 2017 05:07:35 -0700 (PDT) From: Adrien Mazarguil To: dev@dpdk.org Cc: Jerin Jacob , "De Lara Guarch, Pablo" Date: Wed, 26 Apr 2017 14:07:10 +0200 Message-Id: X-Mailer: git-send-email 2.1.4 In-Reply-To: References: Subject: [dpdk-dev] [PATCH v3 02/14] eventdev: fix errors with strict compilation flags 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: Wed, 26 Apr 2017 12:07:37 -0000 Exported headers must allow compilation with the strictest flags. This commit addresses the following errors: In file included from build/include/rte_eventdev_pmd.h:55:0, from /tmp/check-includes.sh.25816.c:1: build/include/rte_eventdev.h:908:8: error: struct has no named members [-Werror=pedantic] [...] In file included from /tmp/check-includes.sh.25816.c:1:0: build/include/rte_eventdev_pmd.h:65:35: error: ISO C does not permit named variadic macros [-Werror=variadic-macros] [...] Fixes: 71f238432865 ("eventdev: introduce event driven programming model") Fixes: 4f0804bbdfb9 ("eventdev: implement the northbound APIs") Cc: Jerin Jacob Cc: "De Lara Guarch, Pablo" Signed-off-by: Adrien Mazarguil --- lib/librte_eventdev/rte_eventdev.h | 3 +-- lib/librte_eventdev/rte_eventdev_pmd.h | 16 +++++++++------- 2 files changed, 10 insertions(+), 9 deletions(-) diff --git a/lib/librte_eventdev/rte_eventdev.h b/lib/librte_eventdev/rte_eventdev.h index b8ed6ef..20e7293 100644 --- a/lib/librte_eventdev/rte_eventdev.h +++ b/lib/librte_eventdev/rte_eventdev.h @@ -905,9 +905,9 @@ rte_event_dev_close(uint8_t dev_id); * The generic *rte_event* structure to hold the event attributes * for dequeue and enqueue operation */ +RTE_STD_C11 struct rte_event { /** WORD0 */ - RTE_STD_C11 union { uint64_t event; /** Event attributes for dequeue or enqueue operation */ @@ -967,7 +967,6 @@ struct rte_event { }; }; /** WORD1 */ - RTE_STD_C11 union { uint64_t u64; /**< Opaque 64-bit value */ diff --git a/lib/librte_eventdev/rte_eventdev_pmd.h b/lib/librte_eventdev/rte_eventdev_pmd.h index a73dc91..988018f 100644 --- a/lib/librte_eventdev/rte_eventdev_pmd.h +++ b/lib/librte_eventdev/rte_eventdev_pmd.h @@ -62,16 +62,18 @@ extern "C" { #endif /* Logging Macros */ -#define RTE_EDEV_LOG_ERR(fmt, args...) \ - RTE_LOG(ERR, EVENTDEV, "%s() line %u: " fmt "\n", \ - __func__, __LINE__, ## args) +#define RTE_EDEV_LOG_ERR(...) \ + RTE_LOG(ERR, EVENTDEV, \ + RTE_FMT("%s() line %u: " RTE_FMT_HEAD(__VA_ARGS__,) "\n", \ + __func__, __LINE__, RTE_FMT_TAIL(__VA_ARGS__,))) #ifdef RTE_LIBRTE_EVENTDEV_DEBUG -#define RTE_EDEV_LOG_DEBUG(fmt, args...) \ - RTE_LOG(DEBUG, EVENTDEV, "%s() line %u: " fmt "\n", \ - __func__, __LINE__, ## args) +#define RTE_EDEV_LOG_DEBUG(...) \ + RTE_LOG(DEBUG, EVENTDEV, \ + RTE_FMT("%s() line %u: " RTE_FMT_HEAD(__VA_ARGS__,) "\n", \ + __func__, __LINE__, RTE_FMT_TAIL(__VA_ARGS__,))) #else -#define RTE_EDEV_LOG_DEBUG(fmt, args...) (void)0 +#define RTE_EDEV_LOG_DEBUG(...) (void)0 #endif /* Macros to check for valid device */ -- 2.1.4