From patchwork Mon Jul 6 07:49:29 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joyce Kong X-Patchwork-Id: 73159 X-Patchwork-Delegate: david.marchand@redhat.com Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 2B6D0A00C5; Mon, 6 Jul 2020 09:50:30 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 12BF21D6DC; Mon, 6 Jul 2020 09:50:12 +0200 (CEST) Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by dpdk.org (Postfix) with ESMTP id 3FA8C1D6C4 for ; Mon, 6 Jul 2020 09:50:10 +0200 (CEST) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id CAEDD30E; Mon, 6 Jul 2020 00:50:09 -0700 (PDT) Received: from net-arm-thunderx2-03.shanghai.arm.com (net-arm-thunderx2-03.shanghai.arm.com [10.169.41.185]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 69FF13F71E; Mon, 6 Jul 2020 00:50:05 -0700 (PDT) From: Joyce Kong To: maxime.coquelin@redhat.com, jerinj@marvell.com, zhihong.wang@intel.com, xiaolong.ye@intel.com, beilei.xing@intel.com, jia.guo@intel.com, john.mcnamara@intel.com, matan@mellanox.com, shahafs@mellanox.com, viacheslavo@mellanox.com, honnappa.nagarahalli@arm.com, phil.yang@arm.com, ruifeng.wang@arm.com Cc: dev@dpdk.org, nd@arm.com Date: Mon, 6 Jul 2020 15:49:29 +0800 Message-Id: <20200706074930.54299-6-joyce.kong@arm.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20200706074930.54299-1-joyce.kong@arm.com> References: <20200611033248.39049-1-joyce.kong@arm.com> <20200706074930.54299-1-joyce.kong@arm.com> MIME-Version: 1.0 Subject: [dpdk-dev] [PATCH v2 5/6] examples/performance-thread: replace restrict with wrapper 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: , Errors-To: dev-bounces@dpdk.org Sender: "dev" '__rte_restrict' is a common wrapper for restricted pointers which can be supported by all compilers. Use '__rte_restrict' instead of '__restrict' for code consistency. Signed-off-by: Joyce Kong Reviewed-by: Phil Yang Reviewed-by: Ruifeng Wang --- .../performance-thread/pthread_shim/pthread_shim.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/examples/performance-thread/pthread_shim/pthread_shim.c b/examples/performance-thread/pthread_shim/pthread_shim.c index 93e8dca3f..bbc076584 100644 --- a/examples/performance-thread/pthread_shim/pthread_shim.c +++ b/examples/performance-thread/pthread_shim/pthread_shim.c @@ -341,9 +341,9 @@ int pthread_cond_signal(pthread_cond_t *cond) } int -pthread_cond_timedwait(pthread_cond_t *__restrict cond, - pthread_mutex_t *__restrict mutex, - const struct timespec *__restrict time) +pthread_cond_timedwait(pthread_cond_t *__rte_restrict cond, + pthread_mutex_t *__rte_restrict mutex, + const struct timespec *__rte_restrict time) { NOT_IMPLEMENTED; return _sys_pthread_funcs.f_pthread_cond_timedwait(cond, mutex, time); @@ -362,10 +362,10 @@ int pthread_cond_wait(pthread_cond_t *cond, pthread_mutex_t *mutex) } int -pthread_create(pthread_t *__restrict tid, - const pthread_attr_t *__restrict attr, +pthread_create(pthread_t *__rte_restrict tid, + const pthread_attr_t *__rte_restrict attr, lthread_func_t func, - void *__restrict arg) + void *__rte_restrict arg) { if (override) { int lcore = -1;