From 56f4a65438dd5b2e91ba16f000ba3f1732076dba Mon Sep 17 00:00:00 2001 From: Andrew Morton Date: Tue, 20 Jan 2004 03:11:06 -0800 Subject: [PATCH] [PATCH] loop needs MODULE_ALIAS_BLOCK From: Erik van Konijnenburg There are two issues here: - absense of a MODULE_ALIAS_BLOCK in loop.c - mismatch between the patterns used in the MODULE_ALIAS_BLOCK define and the modprobe invokation in request_module. (acked by Rusty) --- drivers/block/loop.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/block/loop.c b/drivers/block/loop.c index 87f8c2527ca8f..f815c2f9733e8 100644 --- a/drivers/block/loop.c +++ b/drivers/block/loop.c @@ -55,6 +55,7 @@ #include #include #include +#include #include #include #include @@ -1120,6 +1121,7 @@ static struct block_device_operations lo_fops = { MODULE_PARM(max_loop, "i"); MODULE_PARM_DESC(max_loop, "Maximum number of loop devices (1-256)"); MODULE_LICENSE("GPL"); +MODULE_ALIAS_BLOCKDEV_MAJOR(LOOP_MAJOR); int loop_register_transfer(struct loop_func_table *funcs) { -- 2.53.0