All of lore.kernel.org
 help / color / mirror / Atom feed
From: David Miller <davem@davemloft.net>
To: jesse.brandeburg@gmail.com
Cc: netdev@vger.kernel.org, intel-wired-lan@lists.osuosl.org,
	jesse.brandeburg@intel.com, kuba@kernel.org, saeed@kernel.org
Subject: Re: [PATCH net-next v3 0/9] make drivers/net/ethernet W=1 clean
Date: Fri, 25 Sep 2020 16:31:15 -0700 (PDT)	[thread overview]
Message-ID: <20200925.163115.1983585891277676668.davem@davemloft.net> (raw)
In-Reply-To: <20200925222445.74531-1-jesse.brandeburg@gmail.com>

From: Jesse Brandeburg <jesse.brandeburg@gmail.com>
Date: Fri, 25 Sep 2020 15:24:36 -0700

> From: Jesse Brandeburg <jesse.brandeburg@intel.com>
> 
> The Goal: move to W=1 being default for drivers/net/ethernet, and
> then use automation to catch more code issues (warnings) being
> introduced.
> The status: Getting much closer but not quite done for all
> architectures.
> 
> After applying the patches below, the drivers/net/ethernet
> directory can be built as modules with W=1 with no warnings (so
> far on x64_64 arch only!). As Jakub pointed out, there is much
> more work to do to clean up C=1, but that will be another series
> of changes.
> 
> This series removes 1,247 warnings and hopefully allows the
> ethernet directory to move forward from here without more
> warnings being added. There is only one objtool warning now.
> 
> This version drops one of the Intel patches, as I couldn't
> reproduce the original issue to document the warning.
> 
> Some of these patches are already sent and tested on Intel Wired
> Lan, but the rest of the series titled drivers/net/ethernet
> affects other drivers. The changes are all pretty
> straightforward.
> 
> Signed-off-by: Jesse Brandeburg <jesse.brandeburg@intel.com>
> Reviewed-by: Jakub Kicinski <kuba@kernel.org>
> Reviewed-by: Saeed Mahameed <saeed@kernel.org>

Series applied, but that sh_eth.c thing gives me major cancer.

There has to be a better way to describe that table and I recently
pushed back on someone trying to stick a CFLAGS modification into
that subdirectory's Makefile to fix it.

That strategy of initializing a table might be convenient, but with it
you can't look at each table and see which registers DO NOT exist for
each chip which is just as interesting as which ones do exist.

But the main point is that the warning should be avoided in a cleaner
way somehow.  And by doing so we'll likely make the tables more
expressive.


WARNING: multiple messages have this Message-ID (diff)
From: David Miller <davem@davemloft.net>
To: intel-wired-lan@osuosl.org
Subject: [Intel-wired-lan] [PATCH net-next v3 0/9] make drivers/net/ethernet W=1 clean
Date: Fri, 25 Sep 2020 16:31:15 -0700 (PDT)	[thread overview]
Message-ID: <20200925.163115.1983585891277676668.davem@davemloft.net> (raw)
In-Reply-To: <20200925222445.74531-1-jesse.brandeburg@gmail.com>

From: Jesse Brandeburg <jesse.brandeburg@gmail.com>
Date: Fri, 25 Sep 2020 15:24:36 -0700

> From: Jesse Brandeburg <jesse.brandeburg@intel.com>
> 
> The Goal: move to W=1 being default for drivers/net/ethernet, and
> then use automation to catch more code issues (warnings) being
> introduced.
> The status: Getting much closer but not quite done for all
> architectures.
> 
> After applying the patches below, the drivers/net/ethernet
> directory can be built as modules with W=1 with no warnings (so
> far on x64_64 arch only!). As Jakub pointed out, there is much
> more work to do to clean up C=1, but that will be another series
> of changes.
> 
> This series removes 1,247 warnings and hopefully allows the
> ethernet directory to move forward from here without more
> warnings being added. There is only one objtool warning now.
> 
> This version drops one of the Intel patches, as I couldn't
> reproduce the original issue to document the warning.
> 
> Some of these patches are already sent and tested on Intel Wired
> Lan, but the rest of the series titled drivers/net/ethernet
> affects other drivers. The changes are all pretty
> straightforward.
> 
> Signed-off-by: Jesse Brandeburg <jesse.brandeburg@intel.com>
> Reviewed-by: Jakub Kicinski <kuba@kernel.org>
> Reviewed-by: Saeed Mahameed <saeed@kernel.org>

Series applied, but that sh_eth.c thing gives me major cancer.

There has to be a better way to describe that table and I recently
pushed back on someone trying to stick a CFLAGS modification into
that subdirectory's Makefile to fix it.

That strategy of initializing a table might be convenient, but with it
you can't look at each table and see which registers DO NOT exist for
each chip which is just as interesting as which ones do exist.

But the main point is that the warning should be avoided in a cleaner
way somehow.  And by doing so we'll likely make the tables more
expressive.


  parent reply	other threads:[~2020-09-25 23:31 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-09-25 22:24 [PATCH net-next v3 0/9] make drivers/net/ethernet W=1 clean Jesse Brandeburg
2020-09-25 22:24 ` [Intel-wired-lan] " Jesse Brandeburg
2020-09-25 22:24 ` [PATCH net-next v3 1/9] intel-ethernet: clean up W=1 warnings in kdoc Jesse Brandeburg
2020-09-25 22:24   ` [Intel-wired-lan] " Jesse Brandeburg
2020-09-25 22:24 ` [PATCH net-next v3 2/9] intel: handle unused assignments Jesse Brandeburg
2020-09-25 22:24   ` [Intel-wired-lan] " Jesse Brandeburg
2020-09-25 22:24 ` [PATCH net-next v3 3/9] drivers/net/ethernet: clean up " Jesse Brandeburg
2020-09-25 22:24   ` [Intel-wired-lan] " Jesse Brandeburg
2020-09-25 22:24 ` [PATCH net-next v3 4/9] drivers/net/ethernet: rid ethernet of no-prototype warnings Jesse Brandeburg
2020-09-25 22:24   ` [Intel-wired-lan] " Jesse Brandeburg
2020-09-25 22:24 ` [PATCH net-next v3 5/9] drivers/net/ethernet: handle one warning explicitly Jesse Brandeburg
2020-09-25 22:24   ` [Intel-wired-lan] " Jesse Brandeburg
2020-09-25 22:24 ` [PATCH net-next v3 6/9] drivers/net/ethernet: add some basic kdoc tags Jesse Brandeburg
2020-09-25 22:24   ` [Intel-wired-lan] " Jesse Brandeburg
2020-09-25 22:24 ` [PATCH net-next v3 7/9] drivers/net/ethernet: remove incorrectly formatted doc Jesse Brandeburg
2020-09-25 22:24   ` [Intel-wired-lan] " Jesse Brandeburg
2020-09-25 22:24 ` [PATCH net-next v3 8/9] sfc: fix kdoc warning Jesse Brandeburg
2020-09-25 22:24   ` [Intel-wired-lan] " Jesse Brandeburg
2020-09-25 22:24 ` [PATCH net-next v3 9/9] drivers/net/ethernet: clean up mis-targeted comments Jesse Brandeburg
2020-09-25 22:24   ` [Intel-wired-lan] " Jesse Brandeburg
2020-09-25 23:31 ` David Miller [this message]
2020-09-25 23:31   ` [Intel-wired-lan] [PATCH net-next v3 0/9] make drivers/net/ethernet W=1 clean David Miller

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=20200925.163115.1983585891277676668.davem@davemloft.net \
    --to=davem@davemloft.net \
    --cc=intel-wired-lan@lists.osuosl.org \
    --cc=jesse.brandeburg@gmail.com \
    --cc=jesse.brandeburg@intel.com \
    --cc=kuba@kernel.org \
    --cc=netdev@vger.kernel.org \
    --cc=saeed@kernel.org \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.