DPDK patches and discussions
 help / color / mirror / Atom feed
From: <pbhagavatula@marvell.com>
To: <jerinj@marvell.com>, Pavan Nikhilesh <pbhagavatula@marvell.com>,
	"Shijith Thotton" <sthotton@marvell.com>,
	Nithin Dabilpuram <ndabilpuram@marvell.com>,
	Kiran Kumar K <kirankumark@marvell.com>,
	Sunil Kumar Kori <skori@marvell.com>,
	Satha Rao <skoteshwar@marvell.com>
Cc: <dev@dpdk.org>
Subject: [PATCH] drivers/cnxk: disable asm operand width warning
Date: Thu, 15 Jun 2023 01:51:13 +0530	[thread overview]
Message-ID: <20230614202113.2092-1-pbhagavatula@marvell.com> (raw)

From: Pavan Nikhilesh <pbhagavatula@marvell.com>

Disable -Wasm-operand-widths when using clang.

Fixes: 1c80eb7a3ccc ("event/cnxk: use WFE in Tx flow control wait")

Signed-off-by: Pavan Nikhilesh <pbhagavatula@marvell.com>
---
 Jerin, Please squash this to 1c80eb7a3ccc.

 drivers/event/cnxk/meson.build | 4 ++++
 drivers/net/cnxk/meson.build   | 3 +++
 2 files changed, 7 insertions(+)

diff --git a/drivers/event/cnxk/meson.build b/drivers/event/cnxk/meson.build
index e38d3b0244..91c26fae6f 100644
--- a/drivers/event/cnxk/meson.build
+++ b/drivers/event/cnxk/meson.build
@@ -294,6 +294,10 @@ sources += files(
 endif

 extra_flags = ['-flax-vector-conversions', '-Wno-strict-aliasing']
+if cc.get_id() == 'clang'
+        extra_flags += ['-Wno-asm-operand-widths']
+endif
+
 foreach flag: extra_flags
     if cc.has_argument(flag)
         cflags += flag
diff --git a/drivers/net/cnxk/meson.build b/drivers/net/cnxk/meson.build
index 62b8bb90fb..5f4b8a0431 100644
--- a/drivers/net/cnxk/meson.build
+++ b/drivers/net/cnxk/meson.build
@@ -202,6 +202,9 @@ deps += ['common_cnxk', 'mempool_cnxk']

 # Allow implicit vector conversions and strict aliasing warning
 extra_flags = ['-flax-vector-conversions', '-Wno-strict-aliasing']
+if cc.get_id() == 'clang'
+        extra_flags += ['-Wno-asm-operand-widths']
+endif
 foreach flag: extra_flags
     if cc.has_argument(flag)
         cflags += flag
--
2.39.1


             reply	other threads:[~2023-06-14 20:21 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-06-14 20:21 pbhagavatula [this message]
2023-06-15  5:48 ` Jerin Jacob

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=20230614202113.2092-1-pbhagavatula@marvell.com \
    --to=pbhagavatula@marvell.com \
    --cc=dev@dpdk.org \
    --cc=jerinj@marvell.com \
    --cc=kirankumark@marvell.com \
    --cc=ndabilpuram@marvell.com \
    --cc=skori@marvell.com \
    --cc=skoteshwar@marvell.com \
    --cc=sthotton@marvell.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).