DPDK patches and discussions
 help / color / mirror / Atom feed
From: Ali Alnubani <alialnu@oss.nvidia.com>
To: "jerinj@marvell.com" <jerinj@marvell.com>,
	John McNamara <john.mcnamara@intel.com>,
	Ian Betts <ian.betts@intel.com>,
	Tomasz Kulasek <tomaszx.kulasek@intel.com>
Cc: "dev@dpdk.org" <dev@dpdk.org>,
	NBU-Contact-Thomas Monjalon <thomas@monjalon.net>,
	"bruce.richardson@intel.com" <bruce.richardson@intel.com>,
	"david.marchand@redhat.com" <david.marchand@redhat.com>
Subject: Re: [dpdk-dev] [PATCH] examples/performance-thread: fix build issue with clang 12.0.1
Date: Thu, 19 Aug 2021 07:09:27 +0000	[thread overview]
Message-ID: <DM4PR12MB5167D24F09332BF32FA21892DAC09@DM4PR12MB5167.namprd12.prod.outlook.com> (raw)
In-Reply-To: <20210816131914.544110-1-jerinj@marvell.com>

> -----Original Message-----
> From: jerinj@marvell.com <jerinj@marvell.com>
> Sent: Monday, August 16, 2021 4:19 PM
> To: John McNamara <john.mcnamara@intel.com>; Ian Betts
> <ian.betts@intel.com>; Tomasz Kulasek <tomaszx.kulasek@intel.com>
> Cc: dev@dpdk.org; NBU-Contact-Thomas Monjalon
> <thomas@monjalon.net>; bruce.richardson@intel.com;
> david.marchand@redhat.com; Jerin Jacob <jerinj@marvell.com>; Ali
> Alnubani <alialnu@nvidia.com>
> Subject: [PATCH] examples/performance-thread: fix build issue with clang
> 12.0.1
> 
> From: Jerin Jacob <jerinj@marvell.com>
> 
> 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 <jerinj@marvell.com>
> ---

I think this issue might be specific to Fedora Rawhide's build of clang 12.0.1, see my comment in the ticket:
https://bugs.dpdk.org/show_bug.cgi?id=745#c3

Tested-by: Ali Alnubani <alialnu@nvidia.com>

Thanks Jerin.

Ali

  reply	other threads:[~2021-08-19  7:09 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-08-16 13:19 jerinj
2021-08-19  7:09 ` Ali Alnubani [this message]
2021-08-27 11:36   ` Thomas Monjalon

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=DM4PR12MB5167D24F09332BF32FA21892DAC09@DM4PR12MB5167.namprd12.prod.outlook.com \
    --to=alialnu@oss.nvidia.com \
    --cc=bruce.richardson@intel.com \
    --cc=david.marchand@redhat.com \
    --cc=dev@dpdk.org \
    --cc=ian.betts@intel.com \
    --cc=jerinj@marvell.com \
    --cc=john.mcnamara@intel.com \
    --cc=thomas@monjalon.net \
    --cc=tomaszx.kulasek@intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).