diff mbox series

[v1] netdevice: clean old FIXME that it is not worthed

Message ID 20230304194433.560378-1-vincenzopalazzodev@gmail.com (mailing list archive)
State RFC
Delegated to: Netdev Maintainers
Headers show
Series [v1] netdevice: clean old FIXME that it is not worthed | expand

Checks

Context Check Description
netdev/series_format warning Single patches do not need cover letters; Target tree name not specified in the subject
netdev/tree_selection success Guessed tree name to be net-next, async
netdev/fixes_present success Fixes tag not required for -next series
netdev/header_inline success No static functions without inline keyword in header files
netdev/build_32bit success Errors and warnings before: 4350 this patch: 4350
netdev/cc_maintainers warning 3 maintainers not CCed: pabeni@redhat.com kuba@kernel.org edumazet@google.com
netdev/build_clang success Errors and warnings before: 1015 this patch: 1015
netdev/verify_signedoff success Signed-off-by tag matches author and committer
netdev/deprecated_api success None detected
netdev/check_selftest success No net selftest shell script
netdev/verify_fixes success No Fixes tag
netdev/build_allmodconfig_warn success Errors and warnings before: 4563 this patch: 4563
netdev/checkpatch success total: 0 errors, 0 warnings, 0 checks, 7 lines checked
netdev/kdoc success Errors and warnings before: 0 this patch: 0
netdev/source_inline success Was 0 now: 0

Commit Message

Vincenzo Palazzo March 4, 2023, 7:44 p.m. UTC
Alternative patch that removes an old FIXME because it currently
the change is worthed as some comments in the patch point out
(https://lore.kernel.org/all/20230304080650.74e8d396@hermes.local/#t)

Signed-off-by: Vincenzo Palazzo <vincenzopalazzodev@gmail.com>
---
 include/linux/netdevice.h | 1 -
 1 file changed, 1 deletion(-)

Comments

Stephen Hemminger March 4, 2023, 8:17 p.m. UTC | #1
On Sat,  4 Mar 2023 20:44:33 +0100
Vincenzo Palazzo <vincenzopalazzodev@gmail.com> wrote:

> Alternative patch that removes an old FIXME because it currently
> the change is worthed as some comments in the patch point out
> (https://lore.kernel.org/all/20230304080650.74e8d396@hermes.local/#t)
> 
> Signed-off-by: Vincenzo Palazzo <vincenzopalazzodev@gmail.com>
> ---
>  include/linux/netdevice.h | 1 -
>  1 file changed, 1 deletion(-)
> 
> diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h
> index 6a14b7b11766..82af7eb62075 100644
> --- a/include/linux/netdevice.h
> +++ b/include/linux/netdevice.h
> @@ -2033,7 +2033,6 @@ struct net_device {
>  	struct dev_ifalias	__rcu *ifalias;
>  	/*
>  	 *	I/O specific fields
> -	 *	FIXME: Merge these and struct ifmap into one
>  	 */
>  	unsigned long		mem_end;
>  	unsigned long		mem_start;

These fields actually are only used by old hardware devices that
pre-date buses with auto discovery. I.e ISA bus not PCI.

Since ISA bus support is gone, either these devices should have
been removed as well or they really aren't using those fields..

If someone wanted to clean this stuff out, start by seeing
if any of those devices still live. For example, the E1000e has
a couple of variants and dropping support for the non-PCI variant
would be ok.

All of arcnet could/should go away? Maybe move to staging?

The wan devices might also have been ISA only devices that are now
unusable.
Vincenzo Palazzo March 6, 2023, 4:55 p.m. UTC | #2
On Sat Mar 4, 2023 at 9:17 PM CET, Stephen Hemminger wrote:
> On Sat,  4 Mar 2023 20:44:33 +0100
> Vincenzo Palazzo <vincenzopalazzodev@gmail.com> wrote:
>
> > Alternative patch that removes an old FIXME because it currently
> > the change is worthed as some comments in the patch point out
> > (https://lore.kernel.org/all/20230304080650.74e8d396@hermes.local/#t)
> > 
> > Signed-off-by: Vincenzo Palazzo <vincenzopalazzodev@gmail.com>
> > ---
> >  include/linux/netdevice.h | 1 -
> >  1 file changed, 1 deletion(-)
> > 
> > diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h
> > index 6a14b7b11766..82af7eb62075 100644
> > --- a/include/linux/netdevice.h
> > +++ b/include/linux/netdevice.h
> > @@ -2033,7 +2033,6 @@ struct net_device {
> >  	struct dev_ifalias	__rcu *ifalias;
> >  	/*
> >  	 *	I/O specific fields
> > -	 *	FIXME: Merge these and struct ifmap into one
> >  	 */
> >  	unsigned long		mem_end;
> >  	unsigned long		mem_start;
>
> These fields actually are only used by old hardware devices that
> pre-date buses with auto discovery. I.e ISA bus not PCI.
>
> Since ISA bus support is gone, either these devices should have
> been removed as well or they really aren't using those fields..
>
> If someone wanted to clean this stuff out, start by seeing
> if any of those devices still live. For example, the E1000e has
> a couple of variants and dropping support for the non-PCI variant
> would be ok.
>
> All of arcnet could/should go away? Maybe move to staging?
>
> The wan devices might also have been ISA only devices that are now
> unusable.

Well I could do this, also because from the patch [1] that I made
looks like there are not a lot of driver that are using these fields.

However, what is the right process for this kind of clean up work?

[1] https://lore.kernel.org/all/20230304122432.265902-1-vincenzopalazzodev@gmail.com/
diff mbox series

Patch

diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h
index 6a14b7b11766..82af7eb62075 100644
--- a/include/linux/netdevice.h
+++ b/include/linux/netdevice.h
@@ -2033,7 +2033,6 @@  struct net_device {
 	struct dev_ifalias	__rcu *ifalias;
 	/*
 	 *	I/O specific fields
-	 *	FIXME: Merge these and struct ifmap into one
 	 */
 	unsigned long		mem_end;
 	unsigned long		mem_start;