[dm-devel] [PATCH] dm.c: Remove deprecated MODULE_PARM
Kevin Corry
kevcorry at us.ibm.com
Tue Jul 29 11:01:01 UTC 2003
MODULE_PARM is deprecated in 2.6. Use the new module_param() macro.
--- linux-2.6.0-test2/drivers/md/dm.c 28 Jul 2003 15:40:57 -0000
+++ linux-2.6.0-test2-dm/drivers/md/dm.c 29 Jul 2003 15:16:19 -0000
@@ -8,6 +8,7 @@
#include <linux/init.h>
#include <linux/module.h>
+#include <linux/moduleparam.h>
#include <linux/blkpg.h>
#include <linux/bio.h>
#include <linux/mempool.h>
@@ -916,7 +917,7 @@
module_init(dm_init);
module_exit(dm_exit);
-MODULE_PARM(major, "i");
+module_param(major, uint, 0);
MODULE_PARM_DESC(major, "The major number of the device mapper");
MODULE_DESCRIPTION(DM_NAME " driver");
MODULE_AUTHOR("Joe Thornber <thornber at sistina.com>");
More information about the dm-devel
mailing list