All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH net-next] net: Space: remove hp100 probe
@ 2021-04-13 14:16 Arnd Bergmann
  2021-04-13 22:42 ` Stephen Hemminger
  0 siblings, 1 reply; 3+ messages in thread
From: Arnd Bergmann @ 2021-04-13 14:16 UTC (permalink / raw)
  To: David S. Miller, Jakub Kicinski
  Cc: Arnd Bergmann, Greg Kroah-Hartman, netdev, linux-kernel

From: Arnd Bergmann <arnd@arndb.de>

The driver was removed last year, but the static initialization got left
behind by accident.

Fixes: a10079c66290 ("staging: remove hp100 driver")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
---
 drivers/net/Space.c | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/drivers/net/Space.c b/drivers/net/Space.c
index 7bb699d7c422..a61cc7b26a87 100644
--- a/drivers/net/Space.c
+++ b/drivers/net/Space.c
@@ -59,9 +59,6 @@ static int __init probe_list2(int unit, struct devprobe2 *p, int autoprobe)
  * look for EISA/PCI cards in addition to ISA cards).
  */
 static struct devprobe2 isa_probes[] __initdata = {
-#if defined(CONFIG_HP100) && defined(CONFIG_ISA)	/* ISA, EISA */
-	{hp100_probe, 0},
-#endif
 #ifdef CONFIG_3C515
 	{tc515_probe, 0},
 #endif
-- 
2.29.2


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

* Re: [PATCH net-next] net: Space: remove hp100 probe
  2021-04-13 14:16 [PATCH net-next] net: Space: remove hp100 probe Arnd Bergmann
@ 2021-04-13 22:42 ` Stephen Hemminger
  2021-04-14  5:52   ` Arnd Bergmann
  0 siblings, 1 reply; 3+ messages in thread
From: Stephen Hemminger @ 2021-04-13 22:42 UTC (permalink / raw)
  To: Arnd Bergmann
  Cc: David S. Miller, Jakub Kicinski, Arnd Bergmann,
	Greg Kroah-Hartman, netdev, linux-kernel

On Tue, 13 Apr 2021 16:16:17 +0200
Arnd Bergmann <arnd@kernel.org> wrote:

> From: Arnd Bergmann <arnd@arndb.de>
> 
> The driver was removed last year, but the static initialization got left
> behind by accident.
> 
> Fixes: a10079c66290 ("staging: remove hp100 driver")
> Signed-off-by: Arnd Bergmann <arnd@arndb.de>
> ---
>  drivers/net/Space.c | 3 ---
>  1 file changed, 3 deletions(-)
> 
> diff --git a/drivers/net/Space.c b/drivers/net/Space.c
> index 7bb699d7c422..a61cc7b26a87 100644
> --- a/drivers/net/Space.c
> +++ b/drivers/net/Space.c
> @@ -59,9 +59,6 @@ static int __init probe_list2(int unit, struct devprobe2 *p, int autoprobe)
>   * look for EISA/PCI cards in addition to ISA cards).
>   */
>  static struct devprobe2 isa_probes[] __initdata = {
> -#if defined(CONFIG_HP100) && defined(CONFIG_ISA)	/* ISA, EISA */
> -	{hp100_probe, 0},
> -#endif
>  #ifdef CONFIG_3C515
>  	{tc515_probe, 0},
>  #endif

Thanks, do we even need to have the static initialization anymore?

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

* Re: [PATCH net-next] net: Space: remove hp100 probe
  2021-04-13 22:42 ` Stephen Hemminger
@ 2021-04-14  5:52   ` Arnd Bergmann
  0 siblings, 0 replies; 3+ messages in thread
From: Arnd Bergmann @ 2021-04-14  5:52 UTC (permalink / raw)
  To: Stephen Hemminger
  Cc: David S. Miller, Jakub Kicinski, Greg Kroah-Hartman, Networking,
	Linux Kernel Mailing List

On Wed, Apr 14, 2021, 00:42 Stephen Hemminger
<stephen@networkplumber.org> wrote:
>
> On Tue, 13 Apr 2021 16:16:17 +0200 Arnd Bergmann <arnd@kernel.org> wrote:
>
> >   */
> >  static struct devprobe2 isa_probes[] __initdata = {
> > -#if defined(CONFIG_HP100) && defined(CONFIG_ISA)     /* ISA, EISA */
> > -     {hp100_probe, 0},
> > -#endif
> >  #ifdef CONFIG_3C515
> >       {tc515_probe, 0},
> >  #endif
>
> Thanks, do we even need to have the static initialization anymore?

I actually did some more cleanups after I sent the above patch when
I found out that this code still exists. It turned out that above half of
the static initializations are completely pointless because the
drivers never rely on the netdev= command line arguments and
can simply be changed to always using module_init() instead of
relying on net_olddevs_init() for the built-in case.

The remaining ones are all ISA drivers: 3c515, Ultra, WD80x3,
NE2000, Lance, SMC9194, CS89x0, NI65 and COPS.

With my cleanups, I move the netdev_boot_setup infrastructure
into drivers/net/Space.c and only compile it when at least one of
these eight drivers is enabled.

All these drivers also support being built as loadable modules, but
in that configuration they only support a single device (back in the
day you could copy the module and just load it twice to support
more than one instance, not sure we still want to support that).

None of these drivers have a maintainer listed, but I suppose
there are still some PC/104 machines with NE2000 network
cards that could theoretically run a modern kernel.

        Arnd

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

end of thread, other threads:[~2021-04-14  5:54 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-13 14:16 [PATCH net-next] net: Space: remove hp100 probe Arnd Bergmann
2021-04-13 22:42 ` Stephen Hemminger
2021-04-14  5:52   ` Arnd Bergmann

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.