DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] [PATCH] checkpatch: suppress fallthrough warning
@ 2020-09-25 16:13 Stephen Hemminger
  2020-09-25 16:41 ` David Marchand
  0 siblings, 1 reply; 4+ messages in thread
From: Stephen Hemminger @ 2020-09-25 16:13 UTC (permalink / raw)
  To: dev; +Cc: Stephen Hemminger

The DPDK does not have (or want to use) the same fallthrough
wrapper as the Linux kernel.  Therefore silence the warning.

Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
---
 devtools/checkpatches.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/devtools/checkpatches.sh b/devtools/checkpatches.sh
index 78a408ef9823..923ff6f7d9ee 100755
--- a/devtools/checkpatches.sh
+++ b/devtools/checkpatches.sh
@@ -33,7 +33,7 @@ VOLATILE,PREFER_PACKED,PREFER_ALIGNED,PREFER_PRINTF,\
 PREFER_KERNEL_TYPES,PREFER_FALLTHROUGH,BIT_MACRO,CONST_STRUCT,\
 SPLIT_STRING,LONG_LINE_STRING,C99_COMMENT_TOLERANCE,\
 LINE_SPACING,PARENTHESIS_ALIGNMENT,NETWORKING_BLOCK_COMMENT_STYLE,\
-NEW_TYPEDEFS,COMPARISON_TO_NULL"
+NEW_TYPEDEFS,COMPARISON_TO_NULL,PREFER_FALLTHROUGH"
 options="$options $DPDK_CHECKPATCH_OPTIONS"
 
 print_usage () {
-- 
2.27.0


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

* Re: [dpdk-dev] [PATCH] checkpatch: suppress fallthrough warning
  2020-09-25 16:13 [dpdk-dev] [PATCH] checkpatch: suppress fallthrough warning Stephen Hemminger
@ 2020-09-25 16:41 ` David Marchand
  2020-09-25 17:13   ` Stephen Hemminger
  0 siblings, 1 reply; 4+ messages in thread
From: David Marchand @ 2020-09-25 16:41 UTC (permalink / raw)
  To: Stephen Hemminger; +Cc: dev

On Fri, Sep 25, 2020 at 6:14 PM Stephen Hemminger
<stephen@networkplumber.org> wrote:
>
> The DPDK does not have (or want to use) the same fallthrough
> wrapper as the Linux kernel.  Therefore silence the warning.
>
> Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
> ---
>  devtools/checkpatches.sh | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/devtools/checkpatches.sh b/devtools/checkpatches.sh
> index 78a408ef9823..923ff6f7d9ee 100755
> --- a/devtools/checkpatches.sh
> +++ b/devtools/checkpatches.sh
> @@ -33,7 +33,7 @@ VOLATILE,PREFER_PACKED,PREFER_ALIGNED,PREFER_PRINTF,\
>  PREFER_KERNEL_TYPES,PREFER_FALLTHROUGH,BIT_MACRO,CONST_STRUCT,\
                       ^^
This token is already set here.
Is there an issue with this?


>  SPLIT_STRING,LONG_LINE_STRING,C99_COMMENT_TOLERANCE,\
>  LINE_SPACING,PARENTHESIS_ALIGNMENT,NETWORKING_BLOCK_COMMENT_STYLE,\
> -NEW_TYPEDEFS,COMPARISON_TO_NULL"
> +NEW_TYPEDEFS,COMPARISON_TO_NULL,PREFER_FALLTHROUGH"
>  options="$options $DPDK_CHECKPATCH_OPTIONS"
>
>  print_usage () {
> --
> 2.27.0
>


-- 
David Marchand


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

* Re: [dpdk-dev] [PATCH] checkpatch: suppress fallthrough warning
  2020-09-25 16:41 ` David Marchand
@ 2020-09-25 17:13   ` Stephen Hemminger
  2020-09-26  8:47     ` David Marchand
  0 siblings, 1 reply; 4+ messages in thread
From: Stephen Hemminger @ 2020-09-25 17:13 UTC (permalink / raw)
  To: David Marchand; +Cc: dev

On Fri, 25 Sep 2020 18:41:40 +0200
David Marchand <david.marchand@redhat.com> wrote:

> On Fri, Sep 25, 2020 at 6:14 PM Stephen Hemminger
> <stephen@networkplumber.org> wrote:
> >
> > The DPDK does not have (or want to use) the same fallthrough
> > wrapper as the Linux kernel.  Therefore silence the warning.
> >
> > Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>

Never mind; note to self look first...

Didn't see that it was already set. Maybe the issue is that the
scans from patchwork are still using older version of the DPDK script?

Did a dummy patch just now with main branch and dpdk-checkpatch is
correctly suppressing the warning. But recent patches submitted
to mailing list are getting checkpatch warnings.

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

* Re: [dpdk-dev] [PATCH] checkpatch: suppress fallthrough warning
  2020-09-25 17:13   ` Stephen Hemminger
@ 2020-09-26  8:47     ` David Marchand
  0 siblings, 0 replies; 4+ messages in thread
From: David Marchand @ 2020-09-26  8:47 UTC (permalink / raw)
  To: Stephen Hemminger, Thomas Monjalon; +Cc: dev

On Fri, Sep 25, 2020 at 7:13 PM Stephen Hemminger
<stephen@networkplumber.org> wrote:
>
> On Fri, 25 Sep 2020 18:41:40 +0200
> David Marchand <david.marchand@redhat.com> wrote:
>
> > On Fri, Sep 25, 2020 at 6:14 PM Stephen Hemminger
> > <stephen@networkplumber.org> wrote:
> > >
> > > The DPDK does not have (or want to use) the same fallthrough
> > > wrapper as the Linux kernel.  Therefore silence the warning.
> > >
> > > Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
>
> Never mind; note to self look first...
>
> Didn't see that it was already set. Maybe the issue is that the
> scans from patchwork are still using older version of the DPDK script?

Ah yes.
I updated it on the server.


-- 
David Marchand


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

end of thread, other threads:[~2020-09-26  8:47 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-09-25 16:13 [dpdk-dev] [PATCH] checkpatch: suppress fallthrough warning Stephen Hemminger
2020-09-25 16:41 ` David Marchand
2020-09-25 17:13   ` Stephen Hemminger
2020-09-26  8:47     ` David Marchand

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