lkml.org 
[lkml]   [2003]   [Jul]   [31]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
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/
\
 
 \ /
  Last update: 2005-03-22 13:47    [W:0.074 / U:0.048 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site