aboutsummaryrefslogtreecommitdiffstats
path: root/security
diff options
context:
space:
mode:
authorMika Kukkonen <mika@osdl.org>2004-07-14 02:19:51 -0700
committerGreg Kroah-Hartman <greg@kroah.com>2004-07-14 02:19:51 -0700
commitfd205fa2ea7d3cbe53ab9bf87de3e321eaf9bfa7 (patch)
tree8e15aff37ed26020d0703415fb1709311496945e /security
parentb6c1cfc66e1baff2bd698296dfe25d7edf21c30b (diff)
downloadhistory-fd205fa2ea7d3cbe53ab9bf87de3e321eaf9bfa7.tar.gz
[PATCH] Upgrade security/root_plug.c to new module parameter syntax
Hi again, Still doing my compile, and got this: CC [M] security/root_plug.o security/root_plug.c:39: warning: missing initializer security/root_plug.c:39: warning: (near initialization for `__parm_vendor_id.addr') security/root_plug.c:42: warning: missing initializer security/root_plug.c:42: warning: (near initialization for `__parm_product_id.addr') security/root_plug.c:48: warning: missing initializer security/root_plug.c:48: warning: (near initialization for `__parm_debug.addr') Simply upgrading root_plug to use the new module parameter syntax seemed to do the trick. I made the debug writable, the others just readable to root. Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
Diffstat (limited to 'security')
-rw-r--r--security/root_plug.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/security/root_plug.c b/security/root_plug.c
index ec8955dcba294..07651def2f782 100644
--- a/security/root_plug.c
+++ b/security/root_plug.c
@@ -36,16 +36,16 @@ static int secondary;
static int vendor_id = 0x0557;
static int product_id = 0x2008;
-MODULE_PARM(vendor_id, "h");
+module_param(vendor_id, uint, 0400);
MODULE_PARM_DESC(vendor_id, "USB Vendor ID of device to look for");
-MODULE_PARM(product_id, "h");
+module_param(product_id, uint, 0400);
MODULE_PARM_DESC(product_id, "USB Product ID of device to look for");
/* should we print out debug messages */
static int debug = 0;
-MODULE_PARM(debug, "i");
+module_param(debug, bool, 0600);
MODULE_PARM_DESC(debug, "Debug enabled or not");
#if defined(CONFIG_SECURITY_ROOTPLUG_MODULE)