DPDK patches and discussions
 help / color / mirror / Atom feed
* [PATCH] drivers/cnxk: disable asm operand width warning
@ 2023-06-14 20:21 pbhagavatula
  2023-06-15  5:48 ` Jerin Jacob
  0 siblings, 1 reply; 2+ messages in thread
From: pbhagavatula @ 2023-06-14 20:21 UTC (permalink / raw)
  To: jerinj, Pavan Nikhilesh, Shijith Thotton, Nithin Dabilpuram,
	Kiran Kumar K, Sunil Kumar Kori, Satha Rao
  Cc: dev

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


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] drivers/cnxk: disable asm operand width warning
  2023-06-14 20:21 [PATCH] drivers/cnxk: disable asm operand width warning pbhagavatula
@ 2023-06-15  5:48 ` Jerin Jacob
  0 siblings, 0 replies; 2+ messages in thread
From: Jerin Jacob @ 2023-06-15  5:48 UTC (permalink / raw)
  To: pbhagavatula
  Cc: jerinj, Shijith Thotton, Nithin Dabilpuram, Kiran Kumar K,
	Sunil Kumar Kori, Satha Rao, dev

On Thu, Jun 15, 2023 at 1:51 AM <pbhagavatula@marvell.com> wrote:
>
> 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.

Squashed.

>
>  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
>

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-06-15  5:49 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-06-14 20:21 [PATCH] drivers/cnxk: disable asm operand width warning pbhagavatula
2023-06-15  5:48 ` Jerin Jacob

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).