From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 10C36A0547; Mon, 16 Aug 2021 15:54:10 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id A97DD40143; Mon, 16 Aug 2021 15:54:09 +0200 (CEST) Received: from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com [67.231.156.173]) by mails.dpdk.org (Postfix) with ESMTP id ABA474003C for ; Mon, 16 Aug 2021 15:54:07 +0200 (CEST) Received: from pps.filterd (m0045851.ppops.net [127.0.0.1]) by mx0b-0016f401.pphosted.com (8.16.1.2/8.16.0.43) with SMTP id 17GDUcuK012575; Mon, 16 Aug 2021 06:54:06 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; h=from : to : cc : subject : date : message-id : mime-version : content-transfer-encoding : content-type; s=pfpt0220; bh=W/M6hPFqogJ6JX5sE0J++6ONd2JveoXj03+6qi+hNtk=; b=h1T2FVZYJc37d5naPsdEB4a+eGWeOQxhs92i1qao82r4IZ0imsLA8MjBYC7B1ZtX1uWZ 8It9bxTujseiJ7Bs4ae7mOIwjWS3M+x3mwWfEh1g7SeC9V3w4X3bs+Uxo9f5yiEb4I0m 8d/7Yx4b8vu14MkLFwm6zcXCOn5v5Myv+1NqXmzwAyQkg5yezSn4pH5hTcvjXp9hRy5Z 7y/XLKVjuySS2Hi/CizL0dnCdvZ28m6gHdy1h6TxnC65+hGlty0T3mCvkVBg+Rpog99W ufILMpLw1CfAa+cH8eF/FjwJk4fEKwZzaioLdnwCMJYa1qPEP+jy/OymMBmo46ZHHGB7 rQ== Received: from dc5-exch02.marvell.com ([199.233.59.182]) by mx0b-0016f401.pphosted.com with ESMTP id 3afcasj25t-5 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Mon, 16 Aug 2021 06:54:06 -0700 Received: from DC5-EXCH02.marvell.com (10.69.176.39) by DC5-EXCH02.marvell.com (10.69.176.39) with Microsoft SMTP Server (TLS) id 15.0.1497.18; Mon, 16 Aug 2021 06:54:04 -0700 Received: from maili.marvell.com (10.69.176.80) by DC5-EXCH02.marvell.com (10.69.176.39) with Microsoft SMTP Server id 15.0.1497.18 via Frontend Transport; Mon, 16 Aug 2021 06:54:04 -0700 Received: from jerin-lab.marvell.com (jerin-lab.marvell.com [10.28.34.14]) by maili.marvell.com (Postfix) with ESMTP id AD60E5E70CC; Mon, 16 Aug 2021 06:20:52 -0700 (PDT) From: To: John McNamara , Ian Betts , Tomasz Kulasek CC: , , , , Jerin Jacob , Date: Mon, 16 Aug 2021 18:49:14 +0530 Message-ID: <20210816131914.544110-1-jerinj@marvell.com> X-Mailer: git-send-email 2.32.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Proofpoint-ORIG-GUID: ZD9YBGTLkQLsQUfnMeQyMidd2XV9ZaP2 X-Proofpoint-GUID: ZD9YBGTLkQLsQUfnMeQyMidd2XV9ZaP2 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.182.1,Aquarius:18.0.790,Hydra:6.0.391,FMLib:17.0.607.475 definitions=2021-08-16_04,2021-08-16_01,2020-04-07_01 Subject: [dpdk-dev] [PATCH] examples/performance-thread: fix build issue with clang 12.0.1 X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 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" From: Jerin Jacob In clang 12.0.1 version, the use of pthread_yield() deprecated, use sched_yield() instead. log: Compiling C object examples/dpdk-pthread_shim.p/performance-thread_pthread_shim_main.c.o ../examples/performance-thread/pthread_shim/main.c: In function 'helloworld_pthread': ../examples/performance-thread/pthread_shim/main.c:75:9: warning: 'pthread_yield' is deprecated: pthread_yield is deprecated, use sched_yield instead [-Wdeprecated-declarations] Fixes: 433ba6228f9a ("examples/performance-thread: add pthread_shim app") Bugzilla ID: 745 Cc: alialnu@oss.nvidia.com Signed-off-by: Jerin Jacob --- examples/performance-thread/pthread_shim/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/performance-thread/pthread_shim/main.c b/examples/performance-thread/pthread_shim/main.c index 257de50692..7ce6cfb0c8 100644 --- a/examples/performance-thread/pthread_shim/main.c +++ b/examples/performance-thread/pthread_shim/main.c @@ -72,7 +72,7 @@ void *helloworld_pthread(void *arg) print_count++; /* yield thread to give opportunity for lock contention */ - pthread_yield(); + sched_yield(); /* retrieve arg from TLS */ uint64_t thread_no = (uint64_t) pthread_getspecific(key); -- 2.32.0