Messages in this thread Patch in this message | | | Date | Thu, 31 Jul 2003 11:48:23 +0100 | From | Joe Thornber <> | Subject | [Patch 1/6] dm: don't use MODULE_PARM |
| |
MODULE_PARM is deprecated in 2.6. Use the new module_param() macro. [Kevin Corry]
--- diff/drivers/md/dm.c 2003-07-28 11:55:33.000000000 +0100 +++ source/drivers/md/dm.c 2003-07-31 11:13:11.000000000 +0100 @@ -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@sistina.com>"); - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |