mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Andrew Morton <akpm@osdl.org>
To: Alexey Dobriyan <adobriyan@gmail.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: [PATCH] Drop second arg of unregister_chrdev()
Date: Mon, 14 Aug 2006 20:48:17 -0700	[thread overview]
Message-ID: <20060814204817.d9365586.akpm@osdl.org> (raw)
In-Reply-To: <20060815033522.GA5163@martell.zuzino.mipt.ru>

On Tue, 15 Aug 2006 07:35:22 +0400
Alexey Dobriyan <adobriyan@gmail.com> wrote:

> * "name" is trivially unused.

OK.

> * Requirement to pass to unregister function anything but cookie you've
>   got from register counterpart is wrong. It creates opportunity to
>   diverge, it create opportunity for bugs if enforced:
> 
> 	/*
> 	 * XXX(hch): bp->b_count_desired might be incorrect (see
> 	 * xfs_buf_associate_memory for details),
> 
> Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
> 
> 	 *                                        but fortunately
> 	 * the Linux version of kmem_free ignores the len argument..
> 	 */
> 	 kmem_free(bp->b_addr, bp->b_count_desired);

I don't understand that.

>  64 files changed, 97 insertions(+), 97 deletions(-)

I do understand that.  This'll cause some grief.  I'd suggest that we add a
new unregister_char_dev() or something, and do

static inline unregister_chrdev(unsigned int major, const char *name)
{
	return unregister_char_dev(major);
}

then migrate callers over to unregister_char_dev() in an organised fashion,
via maintainers where poss.

Then mark unregister_chrdev() deprecated for a while.

Then nuke it.


  reply	other threads:[~2006-08-15  3:48 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-08-15  3:35 Alexey Dobriyan
2006-08-15  3:48 ` Andrew Morton [this message]
2006-08-15  4:18   ` Alexey Dobriyan
2006-08-15 19:52 ` Jonathan Corbet
2006-08-16  7:03   ` Rolf Eike Beer
2006-08-16 15:42     ` Jonathan Corbet
2006-08-17 21:22     ` cdev documentation (was Drop second arg of unregister_chrdev()) Jonathan Corbet
2006-08-18  7:15       ` Rolf Eike Beer
2006-08-18 12:32         ` Dmitry Torokhov
2006-08-18 12:46           ` [TTY] Remove bogus call to cdev_del() Rolf Eike Beer
2006-08-18 13:02         ` cdev documentation (was Drop second arg of unregister_chrdev()) Jonathan Corbet
2006-08-18 13:49           ` Dmitry Torokhov

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=20060814204817.d9365586.akpm@osdl.org \
    --to=akpm@osdl.org \
    --cc=adobriyan@gmail.com \
    --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

all inboxes | Powered by JetHome®