From: Rusty Russell <rusty@rustcorp.com.au>
To: Andrew Morton <akpm@osdl.org>
Cc: greg@kroah.com, Matthias Andree <matthias.andree@gmx.de>
Cc: Linux-Kernel mailing list <linux-kernel@vger.kernel.org>
Subject: Re: Fw: 2.6.0-test11 BK: sg and scanner modules not auto-loaded?
Date: Fri, 19 Dec 2003 11:03:57 +1100 [thread overview]
Message-ID: <20031219031034.B28F62C0FA@lists.samba.org> (raw)
In-Reply-To: Your message of "Thu, 18 Dec 2003 09:14:04 -0800." <20031218091404.4b2f743b.akpm@osdl.org>
In message <20031218091404.4b2f743b.akpm@osdl.org> you write:
>
> Rusty, is this something obvious? (What are the new MODULE_ALIAS rules,
> btw? Why are they now growing an extra numeric field?)>
Because some did, some didn't have a minor number.
I standardized on char-major-x-y, because an alias is trivial
(char-major-180-*), and almost all the modules are supposed to supply
their own aliases, so this should be an entirely in-kernel issue, but
they don't, and Linus stopped taking patches.
More aliases below.
> Similar considerations apply to scanner:
> alias char-major-180-48 scanner
Where did this alias come from? Of course, scanner.c could put in
such an alias, but is it really constant? If so, by all means add a
MODULE_ALIAS_CHARDEV() line in scanner.c. Otherwise, leave it to the
hotplug code.
MODULE_ALIAS* patches welcome,
Rusty.
--
Anyone who quotes me in their sig is an idiot. -- Rusty Russell.
Name: More Aliases
Author: Steve Youngs, Stephen Hemminger
Status: Trivial
D: Add more MODULE_ALIASes where required.
diff -urpN --exclude TAGS -X /home/rusty/devel/kernel/kernel-patches/current-dontdiff --minimal .995-linux-2.6.0/drivers/net/pppoe.c .995-linux-2.6.0.updated/drivers/net/pppoe.c
--- .995-linux-2.6.0/drivers/net/pppoe.c 2003-11-28 12:27:23.000000000 +1100
+++ .995-linux-2.6.0.updated/drivers/net/pppoe.c 2003-12-19 10:36:26.000000000 +1100
@@ -1151,3 +1151,4 @@ module_exit(pppoe_exit);
MODULE_AUTHOR("Michal Ostrowski <mostrows@speakeasy.net>");
MODULE_DESCRIPTION("PPP over Ethernet driver");
MODULE_LICENSE("GPL");
+MODULE_ALIAS_NETPROTO(PF_PPPOX);
diff -urpN --exclude TAGS -X /home/rusty/devel/kernel/kernel-patches/current-dontdiff --minimal .995-linux-2.6.0/drivers/scsi/sg.c .995-linux-2.6.0.updated/drivers/scsi/sg.c
--- .995-linux-2.6.0/drivers/scsi/sg.c 2003-11-24 15:42:31.000000000 +1100
+++ .995-linux-2.6.0.updated/drivers/scsi/sg.c 2003-12-19 10:37:45.000000000 +1100
@@ -2974,3 +2974,4 @@ sg_proc_version_info(char *buffer, int *
module_init(init_sg);
module_exit(exit_sg);
+MODULE_ALIAS_CHARDEV_MAJOR(SCSI_GENERIC_MAJOR);
diff -urpN --exclude TAGS -X /home/rusty/devel/kernel/kernel-patches/current-dontdiff --minimal .995-linux-2.6.0/fs/isofs/inode.c .995-linux-2.6.0.updated/fs/isofs/inode.c
--- .995-linux-2.6.0/fs/isofs/inode.c 2003-10-09 18:02:58.000000000 +1000
+++ .995-linux-2.6.0.updated/fs/isofs/inode.c 2003-12-19 10:36:26.000000000 +1100
@@ -1463,4 +1463,5 @@ static void __exit exit_iso9660_fs(void)
module_init(init_iso9660_fs)
module_exit(exit_iso9660_fs)
MODULE_LICENSE("GPL");
-
+/* Actual filesystem name is iso9660, as requested in filesystems.c */
+MODULE_ALIAS("iso9660");
diff -urpN --exclude TAGS -X /home/rusty/devel/kernel/kernel-patches/current-dontdiff --minimal .995-linux-2.6.0/sound/core/sound.c .995-linux-2.6.0.updated/sound/core/sound.c
--- .995-linux-2.6.0/sound/core/sound.c 2003-09-29 10:26:17.000000000 +1000
+++ .995-linux-2.6.0.updated/sound/core/sound.c 2003-12-19 10:36:26.000000000 +1100
@@ -31,6 +31,7 @@
#include <sound/initval.h>
#include <linux/kmod.h>
#include <linux/devfs_fs_kernel.h>
+#include <linux/device.h>
#define SNDRV_OS_MINORS 256
@@ -52,6 +53,7 @@ MODULE_PARM_SYNTAX(major, "default:116,s
MODULE_PARM(cards_limit, "i");
MODULE_PARM_DESC(cards_limit, "Count of soundcards installed in the system.");
MODULE_PARM_SYNTAX(cards_limit, "default:8,skill:advanced");
+MODULE_ALIAS_CHARDEV_MAJOR(CONFIG_SND_MAJOR);
#ifdef CONFIG_DEVFS_FS
MODULE_PARM(device_mode, "i");
MODULE_PARM_DESC(device_mode, "Device file permission mask for devfs.");
diff -urpN --exclude TAGS -X /home/rusty/devel/kernel/kernel-patches/current-dontdiff --minimal .995-linux-2.6.0/sound/sound_core.c .995-linux-2.6.0.updated/sound/sound_core.c
--- .995-linux-2.6.0/sound/sound_core.c 2003-09-22 10:28:16.000000000 +1000
+++ .995-linux-2.6.0.updated/sound/sound_core.c 2003-12-19 10:36:26.000000000 +1100
@@ -45,6 +45,7 @@
#include <linux/major.h>
#include <linux/kmod.h>
#include <linux/devfs_fs_kernel.h>
+#include <linux/device.h>
#define SOUND_STEP 16
@@ -547,6 +548,7 @@ EXPORT_SYMBOL(mod_firmware_load);
MODULE_DESCRIPTION("Core sound module");
MODULE_AUTHOR("Alan Cox");
MODULE_LICENSE("GPL");
+MODULE_ALIAS_CHARDEV_MAJOR(SOUND_MAJOR);
static void __exit cleanup_soundcore(void)
{
next parent reply other threads:[~2003-12-19 3:10 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20031218091404.4b2f743b.akpm@osdl.org>
2003-12-19 0:03 ` Rusty Russell [this message]
2003-12-19 18:10 ` Fw: 2.6.0-test11 BK: sg and scanner modules not auto-loaded? Greg KH
2003-12-20 3:04 ` Rusty Russell
2003-12-21 0:49 ` Greg KH
2003-12-21 1:25 ` Matthias Andree
2003-12-21 12:37 ` Duncan Sands
2003-12-21 12:44 ` Matthias Andree
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=20031219031034.B28F62C0FA@lists.samba.org \
--to=rusty@rustcorp.com.au \
--cc=akpm@osdl.org \
--cc=greg@kroah.com \
--cc=matthias.andree@gmx.de \
/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 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.