Commit 37440b38 authored by Rusty Russell's avatar Rusty Russell Committed by Linus Torvalds

[PATCH] mostly remove module_parm()

MODULE_PARM() was marked obsolete.  Remove it from everything except
drivers/ and arch/.

Naturally, such a widespread change may introduce bugs for some of the
non-trivial cases, and where in doubt I used "0" as permissions arg (ie.
won't appear in sysfs).  Individual authors should think about whether that
would be useful.
Signed-off-by: default avatarRusty Russell <rusty@rustcorp.com.au>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 3a7d4fac
...@@ -24,6 +24,7 @@ ...@@ -24,6 +24,7 @@
#include <linux/string.h> #include <linux/string.h>
#include <linux/crypto.h> #include <linux/crypto.h>
#include <linux/highmem.h> #include <linux/highmem.h>
#include <linux/moduleparam.h>
#include "tcrypt.h" #include "tcrypt.h"
/* /*
...@@ -853,7 +854,7 @@ static void __exit fini(void) { } ...@@ -853,7 +854,7 @@ static void __exit fini(void) { }
module_init(init); module_init(init);
module_exit(fini); module_exit(fini);
MODULE_PARM(mode, "i"); module_param(mode, int, 0);
MODULE_LICENSE("GPL"); MODULE_LICENSE("GPL");
MODULE_DESCRIPTION("Quick & dirty crypto testing module"); MODULE_DESCRIPTION("Quick & dirty crypto testing module");
......
...@@ -10,6 +10,7 @@ ...@@ -10,6 +10,7 @@
*/ */
#include <linux/module.h> #include <linux/module.h>
#include <linux/moduleparam.h>
#include <linux/init.h> #include <linux/init.h>
#include <linux/sched.h> #include <linux/sched.h>
#include <linux/completion.h> #include <linux/completion.h>
...@@ -47,7 +48,7 @@ MODULE_LICENSE("GPL"); ...@@ -47,7 +48,7 @@ MODULE_LICENSE("GPL");
static char *rootcell; static char *rootcell;
MODULE_PARM(rootcell, "s"); module_param(rootcell, charp, 0);
MODULE_PARM_DESC(rootcell, "root AFS cell name and VL server IP addr list"); MODULE_PARM_DESC(rootcell, "root AFS cell name and VL server IP addr list");
......
...@@ -28,6 +28,7 @@ ...@@ -28,6 +28,7 @@
#include <linux/backing-dev.h> #include <linux/backing-dev.h>
#include <linux/buffer_head.h> #include <linux/buffer_head.h>
#include <linux/vfs.h> #include <linux/vfs.h>
#include <linux/moduleparam.h>
#include "ntfs.h" #include "ntfs.h"
#include "sysctl.h" #include "sysctl.h"
...@@ -2724,7 +2725,7 @@ MODULE_AUTHOR("Anton Altaparmakov <aia21@cantab.net>"); ...@@ -2724,7 +2725,7 @@ MODULE_AUTHOR("Anton Altaparmakov <aia21@cantab.net>");
MODULE_DESCRIPTION("NTFS 1.2/3.x driver - Copyright (c) 2001-2004 Anton Altaparmakov"); MODULE_DESCRIPTION("NTFS 1.2/3.x driver - Copyright (c) 2001-2004 Anton Altaparmakov");
MODULE_LICENSE("GPL"); MODULE_LICENSE("GPL");
#ifdef DEBUG #ifdef DEBUG
MODULE_PARM(debug_msgs, "i"); module_param(debug_msgs, bool, 0);
MODULE_PARM_DESC(debug_msgs, "Enable debug messages."); MODULE_PARM_DESC(debug_msgs, "Enable debug messages.");
#endif #endif
......
...@@ -36,6 +36,7 @@ ...@@ -36,6 +36,7 @@
#include <linux/netdevice.h> #include <linux/netdevice.h>
#include <linux/etherdevice.h> #include <linux/etherdevice.h>
#include <linux/rtnetlink.h> #include <linux/rtnetlink.h>
#include <linux/moduleparam.h>
#include <asm/system.h> #include <asm/system.h>
#include <asm/bitops.h> #include <asm/bitops.h>
...@@ -1181,9 +1182,9 @@ MODULE_AUTHOR("Dag Brattli <dagb@cs.uit.no>"); ...@@ -1181,9 +1182,9 @@ MODULE_AUTHOR("Dag Brattli <dagb@cs.uit.no>");
MODULE_DESCRIPTION("The Linux IrDA LAN protocol"); MODULE_DESCRIPTION("The Linux IrDA LAN protocol");
MODULE_LICENSE("GPL"); MODULE_LICENSE("GPL");
MODULE_PARM(eth, "i"); module_param(eth, bool, 0);
MODULE_PARM_DESC(eth, "Name devices ethX (0) or irlanX (1)"); MODULE_PARM_DESC(eth, "Name devices ethX (0) or irlanX (1)");
MODULE_PARM(access, "i"); module_param(access, int, 0);
MODULE_PARM_DESC(access, "Access type DIRECT=1, PEER=2, HOSTED=3"); MODULE_PARM_DESC(access, "Access type DIRECT=1, PEER=2, HOSTED=3");
module_init(irlan_init); module_init(irlan_init);
......
...@@ -31,6 +31,7 @@ ...@@ -31,6 +31,7 @@
#include <net/ip.h> #include <net/ip.h>
#include <net/route.h> #include <net/route.h>
#include <linux/skbuff.h> #include <linux/skbuff.h>
#include <linux/moduleparam.h>
#include <net/sock.h> #include <net/sock.h>
#include <net/pkt_sched.h> #include <net/pkt_sched.h>
...@@ -449,7 +450,7 @@ static __init void teql_master_setup(struct net_device *dev) ...@@ -449,7 +450,7 @@ static __init void teql_master_setup(struct net_device *dev)
static LIST_HEAD(master_dev_list); static LIST_HEAD(master_dev_list);
static int max_equalizers = 1; static int max_equalizers = 1;
MODULE_PARM(max_equalizers, "i"); module_param(max_equalizers, int, 0);
MODULE_PARM_DESC(max_equalizers, "Max number of link equalizers"); MODULE_PARM_DESC(max_equalizers, "Max number of link equalizers");
static int __init teql_init(void) static int __init teql_init(void)
......
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