projects/linux·commit 72008652

[PATCH] md: create a MODULE_ALIAS for md corresponding to its block major number.

72008652 · NeilBrown <[email protected]> · 2005-08-26 18:34:15 -07:00

I just discovered this is needed for module auto-loading.

Signed-off-by: Neil Brown <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Commit
72008652dae7d10fa668d7b2ada3bddff7403d86
Parents
e1bcfcaa

Changes

1 files changed · +1 −0

FileStatusAddDelContent
drivers/md/md.cmodified+1−0View file

drivers/md/md.c

View file
diff --git a/drivers/md/md.c b/drivers/md/md.c
index 486ee50..deccd56 100644
--- a/drivers/md/md.c
+++ b/drivers/md/md.c
@@ -4011,3 +4011,4 @@ EXPORT_SYMBOL(md_print_devices);
EXPORT_SYMBOL(md_check_recovery);
MODULE_LICENSE("GPL");
MODULE_ALIAS("md");
+MODULE_ALIAS_BLOCKDEV_MAJOR(MD_MAJOR);