Commit 56f4a654 authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[PATCH] loop needs MODULE_ALIAS_BLOCK

From: Erik van Konijnenburg <ekonijn@xs4all.nl>

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)
parent b463bc26
......@@ -55,6 +55,7 @@
#include <linux/errno.h>
#include <linux/major.h>
#include <linux/wait.h>
#include <linux/blkdev.h>
#include <linux/blkpg.h>
#include <linux/init.h>
#include <linux/devfs_fs_kernel.h>
......@@ -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)
{
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment