mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Rusty Russell <rusty@rustcorp.com.au>
To: Takashi Iwai <tiwai@suse.de>
Cc: torvalds@osdl.org, akpm@zip.com.au, linux-kernel@vger.kernel.org
Subject: Re: MODULE_ALIAS patch for ALSA
Date: Fri, 31 Oct 2003 13:21:26 +1100	[thread overview]
Message-ID: <20031031034327.CAE282C0EF@lists.samba.org> (raw)
In-Reply-To: Your message of "Thu, 30 Oct 2003 16:31:58 BST." <s5h7k2myc5t.wl@alsa2.suse.de>

In message <s5h7k2myc5t.wl@alsa2.suse.de> you write:
> Hi Rusty,

Hi Takashi!

> while i've played with it, i found that the alias "char-major-14-*"
> and "char-major-116-*" don't work.  "char-major-14" and
> "char-major-116" do work well.  is it a known issue?
> the module-init-tools is 0.9.14-pre2, BTW.

Yep, there's one odd one out.  Thanks.

Linus, please apply.
Rusty.
--
  Anyone who quotes me in their sig is an idiot. -- Rusty Russell.

Name: request_module char devices fix
Author: Rusty Russell
Status: Trivial

D: Module aliases are all of form "char-major-<major>-<minor>".  char_dev.c
D: calls request_module with "char-major-<major>".

diff -urpN --exclude TAGS -X /home/rusty/devel/kernel/kernel-patches/current-dontdiff --minimal .30462-linux-2.6.0-test9-bk4/fs/char_dev.c .30462-linux-2.6.0-test9-bk4.updated/fs/char_dev.c
--- .30462-linux-2.6.0-test9-bk4/fs/char_dev.c	2003-09-29 10:25:49.000000000 +1000
+++ .30462-linux-2.6.0-test9-bk4.updated/fs/char_dev.c	2003-10-31 13:20:49.000000000 +1100
@@ -434,7 +434,7 @@ void cdev_init(struct cdev *cdev, struct
 
 static struct kobject *base_probe(dev_t dev, int *part, void *data)
 {
-	request_module("char-major-%d", MAJOR(dev));
+	request_module("char-major-%d-%d", MAJOR(dev), MINOR(dev));
 	return NULL;
 }
 

       reply	other threads:[~2003-10-31  3:43 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <s5h7k2myc5t.wl@alsa2.suse.de>
2003-10-31  2:21 ` Rusty Russell [this message]
2003-10-31 10:57   ` Takashi Iwai

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=20031031034327.CAE282C0EF@lists.samba.org \
    --to=rusty@rustcorp.com.au \
    --cc=akpm@zip.com.au \
    --cc=linux-kernel@vger.kernel.org \
    --cc=tiwai@suse.de \
    --cc=torvalds@osdl.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

Powered by JetHome