From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM02-SN1-obe.outbound.protection.outlook.com (mail-sn1nam02on0073.outbound.protection.outlook.com [104.47.36.73]) by dpdk.org (Postfix) with ESMTP id CE3701CF0F for ; Fri, 6 Apr 2018 13:01:33 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=CAVIUMNETWORKS.onmicrosoft.com; s=selector1-cavium-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=E/PWMnKgNDI+Md4gf6Nk2a7A6oIFtsfloZPAgYinkz0=; b=nZ9cKbXYJ1kQfK1l+CfOTIF0kYso0VPxVjWT9z3foEUXu+UTbhBnN+Yhwq8/r0embeSL0WqiURUDIGrtMlwZM6d/tiSgZlmAdxBFsEQAcML3mF/AFCVoq3caJk6UckIlKp53yoqp72OL4QFoRC21sbyDv3r6DYxfpk9pKuFWRXk= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Pavan.Bhagavatula@cavium.com; Received: from ltp-pvn.caveonetworks.com (111.93.218.67) by MWHPR07MB3469.namprd07.prod.outlook.com (2603:10b6:301:63::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.653.12; Fri, 6 Apr 2018 11:01:28 +0000 From: Pavan Nikhilesh To: jerin.jacob@caviumnetworks.com, ferruh.yigit@intel.com, stephen@networkplumber.org, konstantin.ananyev@intel.com, thomas@monjalon.net Cc: dev@dpdk.org, Pavan Nikhilesh Date: Fri, 6 Apr 2018 16:31:03 +0530 Message-Id: <20180406110103.29163-1-pbhagavatula@caviumnetworks.com> X-Mailer: git-send-email 2.17.0 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [111.93.218.67] X-ClientProxiedBy: BMXPR01CA0023.INDPRD01.PROD.OUTLOOK.COM (2603:1096:b00:d::33) To MWHPR07MB3469.namprd07.prod.outlook.com (2603:10b6:301:63::20) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 30fc23e0-5292-4a6c-fad8-08d59badc0f5 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(5600026)(4604075)(2017052603328)(7153060)(7193020); SRVR:MWHPR07MB3469; X-Microsoft-Exchange-Diagnostics: 1; MWHPR07MB3469; 3:TDQfMdZGCDKt5re8QKye+2CtYuAkP2XzS9T7OqdkF3Jk44EKkvu60oTy4Oe5ep/khVI7phh7EzNQjqAB9SesCJOiy9UGdJVaZgQy18wiRscdOPLs2+W7/pIn4a9jmLJruLgrTHiY+uzx/yfmqK6bWgMp088pI4Nn7el9s/vYLFVXueP0ByFjK2xfpJ3ciLnZFGZVQ0C9JfRGF00kmMdwVXLaO0Q7Xd0sLAfBXjZwV4jsq6p7+xi8ytWhCy2UsX5C; 25:W10K7WTCpCfR/vsWKwrQKArkvWlCkH82ThHxVPFWehH09NCHXmykqt6NbF59nq2I3CXqe+eLiN0txswW1az2ubnFkS/3Xd/Vu4j+W9aphADVKTA9ORtzKDHmA/EziEn+n2tYNGNRLNpu7KeSuFr/d+ShdvM7YUxvceW3er5kmtEyz3p+LKd+ISxZzdQTtNVcYS6+4UdH2mE+VnbiPO5yxLzGTbVwfCZ6rFwa6NQKpLrCFfX2Rg9NhXm9tULWgo04TzxYeQfsRwjYxknwfMoD9Vh/7A8I7Sj+XQl0zmr2TUprOnl4S15SgzIa9wAxulda/yfuggZgk4jRxOqml+mazQ==; 31:2Uorj8RJr4W4MqdHszz5QRaaowQmtUPVidZjNHGTyU9oeWxrcoZAn1uSh0dkXFMCCP/cbA06d+kXocfCfP/ug+80jDLikY52Scm3mBm5trR5mNx4aQY0BXWLpXPZ/UK6oOLqnC3QyNaAbfhp1jXLeeyA1CDs8bGsv+9P1z0bE8zf8TzF/ntfbRexxLKxThY4mRRqDVdZ8vZsNAiITchhyn8Y+M1lgGna0PSECOZS4Cc= X-MS-TrafficTypeDiagnostic: MWHPR07MB3469: X-Microsoft-Exchange-Diagnostics: 1; MWHPR07MB3469; 20:bB1D1UySX6EVD5F009mNZE/p/w3Su8YmIEAGxixUNNc+pxb6anx3g1xeJkRh38lc0AQdShqc8pHYOiLr3rkQwToeDaj9AqEdvkFj0qYo4vOOlXTqwnhpDtuuOkVWpr27IroVoXswebpYLQWGNEHG2c/9yrhlU2PuJOTRwkS8mUMP65zEtN27A9W47E2skV35a0ycyuZR4MxyTIBLvxxUcapgwC7FMEcyYrkfOh2QG11DG710Dq1AustHhBgOp9i2MFPounL61yGDLf8UWjh/h0fup1IEZW98sVBWGO5+eS9IIXb+AdrihRRQl//XJmfzcZAXQHPWysWGMkIYmLi9PtgvYFVwt1h+qI5vnyZYfIZY9CbgZW+sYfT8g9lQ9LhZMsS+Zw1rDINYeKum9xCi52l94fbfBeLSGZ9kGS76MIws5cIYTPPQRm4RNDLBSXDj0/O/cqJsQ0l+80TkgdDY5OiZKn9M+CLBswizDrzFzkIkVsAn6jH/YR93eNHXwqIE6iogdsTgqSINre+081lxot/JNZudZ9U27rTFpWYKDZ8oXYHCLWAh6Epdy3JbsvXPv89vifISnY9F3kiTk2nTeBtqOqfomO6MbFVJw3aZPvg=; 4:deVbdiQHdglfyawcslq2pheNDCxKWgnJICv2lnrRHHZ4IdBleUIrEIisKqKnYq01DXzeXoBdph1hE7wS116o6BBPrgzXh0fkKqZmPjMuNzD9IUSDC1XvoBLKcjLoE+C9fifSG+6s6pwW5V8GGfB445qD8/1nxe78aL2z57HRcEZTMjqKqLexUoginIpInGF6mIFPRnTRhN9r1suUx18BnET709fY9ZGUS/snZnex1icfaOkYSw2Q0HsrCoK188dTR5gQwUkqeoajkdwB1pgTQA== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(5005006)(8121501046)(10201501046)(3002001)(3231221)(944501327)(52105095)(93006095)(6041310)(20161123562045)(20161123558120)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123564045)(6072148)(201708071742011); SRVR:MWHPR07MB3469; BCL:0; PCL:0; RULEID:; SRVR:MWHPR07MB3469; X-Forefront-PRVS: 0634F37BFF X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(39860400002)(396003)(366004)(346002)(376002)(39380400002)(189003)(199004)(16526019)(305945005)(50226002)(7736002)(476003)(36756003)(486006)(5009440100003)(6116002)(478600001)(6666003)(1076002)(8676002)(4326008)(81166006)(81156014)(53936002)(8936002)(5660300001)(107886003)(72206003)(25786009)(3846002)(6512007)(97736004)(66066001)(2906002)(2616005)(6506007)(386003)(6486002)(316002)(956004)(50466002)(42882007)(26005)(16586007)(106356001)(51416003)(48376002)(69596002)(53416004)(105586002)(68736007)(1857600001)(52116002)(47776003)(42262002); DIR:OUT; SFP:1101; SCL:1; SRVR:MWHPR07MB3469; H:ltp-pvn.caveonetworks.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; Received-SPF: None (protection.outlook.com: cavium.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; MWHPR07MB3469; 23:5heGA7tFPQmJxzLXdjGu7TG52xE0XULb/hTtlFyhT?= =?us-ascii?Q?r3kgk9N0YIF250HJ8qRnaqs4WT1w10AD7LpDKXrHaQT32d/hKm1ruDp0Hgc8?= =?us-ascii?Q?JWZcELMvlNxMBohW+eNecV6tTvfBrQfqnqhf1udLzD+LBoIH/jjLXudOGH7P?= =?us-ascii?Q?DvVgjE3jhFz3H+BGre1lPDvixFw/0FIp4S+Cem6TxaOS/nWh2QreyHT9GkKK?= =?us-ascii?Q?2NMu5f5gEKQOk3rCfxwS+CfhQl2Rw72zve5cqPIPLMV9LZeCovGUvRIoluIG?= =?us-ascii?Q?0wRTsedAYe6eVNQsLxkGEwx0JBu6gF8bt+BYDXxcYSRZ2wUEnEvDOZ7xbFfD?= =?us-ascii?Q?iQNv0y+mKTNwd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dEqQ= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; MWHPR07MB3469; 7:+yQPFKKUQ/3K+z6iJPP6ci4zDvRz2yu+PRMqTvwfa1Yg9R7gdB6wsHvwqidQP25LvzH6843ogDXPGNRorwtHGw/c7k60+o2fiOumjgVR6le06tb1nTUQmv5tKXwg8HIitGKIfVa4RsYaaH+bvLOn+1FdI0lCgy0f5Pdo0ObyR7geI9OKN8UOfq0EB10MnqgNlTJNuH9cxVHNoLiY5Euw/r5se1nLSBG025DsYaztTC7fEdPEjlxdZ3y+aiZb5q1l X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Apr 2018 11:01:28.8348 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 30fc23e0-5292-4a6c-fad8-08d59badc0f5 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-Transport-CrossTenantHeadersStamped: MWHPR07MB3469 Subject: [dpdk-dev] [PATCH] eal: fix clang compilation error on ARM64 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: Fri, 06 Apr 2018 11:01:34 -0000 Use __atomic_exchange_n instead of __atomic_exchange_(2/4/8). Fixes: ff2863570fcc ("eal: introduce atomic exchange operation") Signed-off-by: Pavan Nikhilesh --- lib/librte_eal/common/include/generic/rte_atomic.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/lib/librte_eal/common/include/generic/rte_atomic.h b/lib/librte_eal/common/include/generic/rte_atomic.h index 8652c0264..91a6d615a 100644 --- a/lib/librte_eal/common/include/generic/rte_atomic.h +++ b/lib/librte_eal/common/include/generic/rte_atomic.h @@ -12,7 +12,9 @@ * This file defines a generic API for atomic operations. */ +#include #include + #include #ifdef __DOXYGEN__ @@ -212,7 +214,7 @@ rte_atomic16_exchange(volatile uint16_t *dst, uint16_t val); static inline uint16_t rte_atomic16_exchange(volatile uint16_t *dst, uint16_t val) { - return __atomic_exchange_2(dst, val, __ATOMIC_SEQ_CST); + return __atomic_exchange_n(dst, val, __ATOMIC_SEQ_CST); } #endif @@ -491,7 +493,7 @@ rte_atomic32_exchange(volatile uint32_t *dst, uint32_t val); static inline uint32_t rte_atomic32_exchange(volatile uint32_t *dst, uint32_t val) { - return __atomic_exchange_4(dst, val, __ATOMIC_SEQ_CST); + return __atomic_exchange_n(dst, val, __ATOMIC_SEQ_CST); } #endif @@ -769,7 +771,7 @@ rte_atomic64_exchange(volatile uint64_t *dst, uint64_t val); static inline uint64_t rte_atomic64_exchange(volatile uint64_t *dst, uint64_t val) { - return __atomic_exchange_8(dst, val, __ATOMIC_SEQ_CST); + return __atomic_exchange_n(dst, val, __ATOMIC_SEQ_CST); } #endif -- 2.17.0