diff options
| author | Stephen Hemminger <shemminger@osdl.org> | 2004-11-01 23:08:40 -0800 |
|---|---|---|
| committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2004-11-01 23:08:40 -0800 |
| commit | aae533c4c597a80c9721014c2a2ec30de853eefa (patch) | |
| tree | 27a853ff068af21b14283ff759e29c31abf34300 /drivers/block | |
| parent | 4333548b836ce18269fa55fd6af1d110a6fe03a1 (diff) | |
[PATCH] loop: convert to module_param
Convert loopback device to new module_param to get rid of warning.
Signed-off-by: Stephen Hemminger <shemminger@osdl.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers/block')
| -rw-r--r-- | drivers/block/loop.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/block/loop.c b/drivers/block/loop.c index 946742912a9f..9e1b08b73bfc 100644 --- a/drivers/block/loop.c +++ b/drivers/block/loop.c @@ -47,7 +47,7 @@ #include <linux/config.h> #include <linux/module.h> - +#include <linux/moduleparam.h> #include <linux/sched.h> #include <linux/fs.h> #include <linux/file.h> @@ -1073,7 +1073,7 @@ static struct block_device_operations lo_fops = { /* * And now the modules code and kernel interface. */ -MODULE_PARM(max_loop, "i"); +module_param(max_loop, int, 0); MODULE_PARM_DESC(max_loop, "Maximum number of loop devices (1-256)"); MODULE_LICENSE("GPL"); MODULE_ALIAS_BLOCKDEV_MAJOR(LOOP_MAJOR); |
