linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Andries Brouwer <aebr@win.tue.nl>
To: Adrian Bunk <bunk@stusta.de>
Cc: Andrew Morton <akpm@osdl.org>, linux-kernel@vger.kernel.org
Subject: Re: [2.6 patch] drivers/block/ps2esdi.c: remove two unused functions (fwd)
Date: Sun, 9 Jan 2005 00:43:37 +0100	[thread overview]
Message-ID: <20050108234337.GE6052@pclin040.win.tue.nl> (raw)
In-Reply-To: <20050108214036.GW14108@stusta.de>

On Sat, Jan 08, 2005 at 10:40:36PM +0100, Adrian Bunk wrote:
> The patch below still applies and compiles against 2.6.10-mm2.
> 
> Date:	Mon, 29 Nov 2004 13:35:00 +0100
> From: Adrian Bunk <bunk@stusta.de>
> To: linux-kernel@vger.kernel.org
> Subject: [2.6 patch] drivers/block/ps2esdi.c: remove two unused functions
> 
> The patch below removes two unused global functions.
> 
> --- linux-2.6.10-rc1-mm3-full/drivers/block/ps2esdi.c.old	2004-11-06 20:17:34.000000000 +0100
> +++ linux-2.6.10-rc1-mm3-full/drivers/block/ps2esdi.c	2004-11-06 20:18:33.000000000 +0100
...
> -void __init tp720_setup(char *str, int *ints)
> -{
...
> -
> -void __init ed_setup(char *str, int *ints)
> -{
...

Hmm. You remove the setup functions, but not the rest of the code.

Of course it is true that nobody uses these today.
On the other hand, I imagine that there was no conscious decision
to kill them. Patch 2.3.13 (August 1999) introduces the
__setup/__initcall setup, and Linus wrote

 "Ok, I finally did what I've wanted to do for a _loong_ time: get rid of
  the horrible #ifdef CONFIG_XXXX mess in init/main.c.
  ...
  I've fixed up a few of the old command lines and initialization functions,
  but I'm hoping that driver writers can re-instate their own setup
  functions rather than me trying to fix up them all by hand."

Many ancient drivers were broken, and perhaps nobody noticed.

For example, Documentation/kernel-parameters.txt tells us that we
can use tp720=, which is false today. It becomes true upon adding
a line

__setup("tp720=", tp720_setup)

and changing the tp720_setup prototype a little.
(Remove the int *ints, possibly add a call to get_options().)

Since there was no storm of complaints, it may be that we can just
remove all reference to tp720, possibly all of ps2esdi, and
similarly for xd. For the past few years the only discussions
have been about these not compiling and getting janitor-type fixes.

Is Paul Gortmaker the only Linux user who still uses this hardware?

Andries

  reply	other threads:[~2005-01-08 23:43 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-01-08 21:40 [2.6 patch] drivers/block/ps2esdi.c: remove two unused functions (fwd) Adrian Bunk
2005-01-08 23:43 ` Andries Brouwer [this message]
2005-01-11  4:32   ` Do PS/2 ESDI users exist? Andries Brouwer
2005-01-11  4:49     ` Andrew Morton
2005-01-15 19:01       ` Andries Brouwer
2005-01-11 10:37     ` Erik Mouw
2005-01-11 16:10     ` Alan Cox

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=20050108234337.GE6052@pclin040.win.tue.nl \
    --to=aebr@win.tue.nl \
    --cc=akpm@osdl.org \
    --cc=bunk@stusta.de \
    --cc=linux-kernel@vger.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 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).