From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from out3-smtp.messagingengine.com (out3-smtp.messagingengine.com [66.111.4.27]) by dpdk.org (Postfix) with ESMTP id 7001C2C57 for ; Thu, 1 Feb 2018 10:48:20 +0100 (CET) Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id 283D720AAB; Thu, 1 Feb 2018 04:48:20 -0500 (EST) Received: from frontend2 ([10.202.2.161]) by compute1.internal (MEProxy); Thu, 01 Feb 2018 04:48:20 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fridaylinux.org; h=cc:date:from:in-reply-to:message-id:references:subject:to :x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=vC4wjw2frSZFr9FYP h39WtSCS67FZ/WveB1qFeiSjmU=; b=qG+q2r5kDaOKKXSfbZPQQHuQGGCN4f/Xk u9I19s8z3I1dM88Ksd5NON/bKaYG/RCli0kgycBejFNjQ0Vp7lDOzfa74hhehJvP LhmOfxBauylGVxCFdC8h+YoDDeHQMgv8AiZ/4rKGsL5ZuU1cUQqwyRwsMziePjKG GTfWKlwQuyS9T4lbkcboI3xNPTCbfEkrHEpYz3V84X84dBU9F8f8x51L1jn63gFU MFWZ+RmFeFw4HaebB26zcuST5RAhklVEAHl0JpqvTBGPE+vSxwhcDt4NYuy8X1Ys F5I4iP9WCQhnRJhJ/oc6LIeedNg631QdeEK/i0dfnxmlAffuBbV8Q== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:date:from:in-reply-to:message-id :references:subject:to:x-me-sender:x-me-sender:x-sasl-enc; s= fm1; bh=vC4wjw2frSZFr9FYPh39WtSCS67FZ/WveB1qFeiSjmU=; b=QWIi/12D BlXi9zV8OxOsfooSncAOm5Scfb1tIpQmbrgiD0njWY417tPVLu2yblnnM4OMLJzE WUQM5nDWkcQ0Uba9jD4fQ7Or3pLpSNviHCxZ9WLOxr/q+Pggi17cTQlFupPo4Xuw +HXJHSRaz6TYKL8JwSLh0Es5qS63uMNbIjyhanvCqKfKIr4Ez4/OzhwNjTiCejzX B//HxZIYA/dInuRnUsOm1BEdPwcztHgXcPcC56svvnxpepf+l8M71Im0+Aypazjt fXyH1ehMucLMNfPAYHrcbEs3vrRtOJ+T/UVX6q3PRxONPvz0ScJ9rf0zi75d3sWi 1iywNJsywh+7gg== X-ME-Sender: Received: from yliu-mob.mtl.com (unknown [115.150.27.200]) by mail.messagingengine.com (Postfix) with ESMTPA id E8EF5240B6; Thu, 1 Feb 2018 04:48:17 -0500 (EST) From: Yuanhan Liu To: Jia He Cc: Jerin Jacob , Hemant Agrawal , dpdk stable Date: Thu, 1 Feb 2018 17:47:21 +0800 Message-Id: <1517478479-12417-7-git-send-email-yliu@fridaylinux.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1517478479-12417-1-git-send-email-yliu@fridaylinux.org> References: <1517478479-12417-1-git-send-email-yliu@fridaylinux.org> Subject: [dpdk-stable] patch 'eal/arm64: remove the braces in memory barrier macros' has been queued to LTS release 17.11.1 X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 01 Feb 2018 09:48:20 -0000 Hi, FYI, your patch has been queued to LTS release 17.11.1 Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet. It will be pushed if I get no objections before 02/03/18. So please shout if anyone has objections. Thanks. --yliu --- >>From 6b297ebc966e73844b93887dc0f725047ac2036d Mon Sep 17 00:00:00 2001 From: Jia He Date: Sun, 21 Jan 2018 20:41:26 -0800 Subject: [PATCH] eal/arm64: remove the braces in memory barrier macros [ upstream commit 59a3cae5305816b3739b4197d277f9455af53b9f ] for the code as follows: if (condition) rte_smp_rmb(); else rte_smp_wmb(); Without this patch, compiler will report this error: error: 'else' without a previous 'if' Fixes: 84733fd0d75e ("eal/arm64: fix memory barrier definition") Signed-off-by: Jia He Acked-by: Jerin Jacob Acked-by: Hemant Agrawal --- lib/librte_eal/common/include/arch/arm/rte_atomic_64.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/librte_eal/common/include/arch/arm/rte_atomic_64.h b/lib/librte_eal/common/include/arch/arm/rte_atomic_64.h index 0b70d62..71da29c 100644 --- a/lib/librte_eal/common/include/arch/arm/rte_atomic_64.h +++ b/lib/librte_eal/common/include/arch/arm/rte_atomic_64.h @@ -43,8 +43,8 @@ extern "C" { #include "generic/rte_atomic.h" -#define dsb(opt) { asm volatile("dsb " #opt : : : "memory"); } -#define dmb(opt) { asm volatile("dmb " #opt : : : "memory"); } +#define dsb(opt) asm volatile("dsb " #opt : : : "memory") +#define dmb(opt) asm volatile("dmb " #opt : : : "memory") #define rte_mb() dsb(sy) -- 2.7.4