Commit 1f82f7dd authored by Stephen Hemminger's avatar Stephen Hemminger Committed by Linus Torvalds

[PATCH] rd: convert to module_param and add module alias

Convert Ramdisk block device to module_param to get rid of warning.  Add
module alias to cause correct autoloading.
Signed-off-by: default avatarStephen Hemminger <shemminger@osdl.org>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent aae533c4
...@@ -48,6 +48,7 @@ ...@@ -48,6 +48,7 @@
#include <asm/atomic.h> #include <asm/atomic.h>
#include <linux/bio.h> #include <linux/bio.h>
#include <linux/module.h> #include <linux/module.h>
#include <linux/moduleparam.h>
#include <linux/init.h> #include <linux/init.h>
#include <linux/devfs_fs_kernel.h> #include <linux/devfs_fs_kernel.h>
#include <linux/pagemap.h> #include <linux/pagemap.h>
...@@ -508,9 +509,10 @@ __setup("ramdisk_blocksize=", ramdisk_blocksize); ...@@ -508,9 +509,10 @@ __setup("ramdisk_blocksize=", ramdisk_blocksize);
#endif #endif
/* options - modular */ /* options - modular */
MODULE_PARM (rd_size, "1i"); module_param(rd_size, int, 0);
MODULE_PARM_DESC(rd_size, "Size of each RAM disk in kbytes."); MODULE_PARM_DESC(rd_size, "Size of each RAM disk in kbytes.");
MODULE_PARM (rd_blocksize, "i"); module_param(rd_blocksize, int, 0);
MODULE_PARM_DESC(rd_blocksize, "Blocksize of each RAM disk in bytes."); MODULE_PARM_DESC(rd_blocksize, "Blocksize of each RAM disk in bytes.");
MODULE_ALIAS_BLOCKDEV_MAJOR(RAMDISK_MAJOR);
MODULE_LICENSE("GPL"); MODULE_LICENSE("GPL");
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