From: Greg KH <greg@kroah.com>
To: linux-kernel@vger.kernel.org
Subject: Re: [PATCH] Driver Core patches for 2.6.8-rc1
Date: Wed, 14 Jul 2004 17:18:24 -0700 [thread overview]
Message-ID: <10898507032467@kroah.com> (raw)
In-Reply-To: <10898507032799@kroah.com>
ChangeSet 1.1784.12.7, 2004/07/14 16:19:51-07:00, mika@osdl.org
[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>
security/root_plug.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff -Nru a/security/root_plug.c b/security/root_plug.c
--- a/security/root_plug.c 2004-07-14 17:10:54 -07:00
+++ b/security/root_plug.c 2004-07-14 17:10:54 -07:00
@@ -36,16 +36,16 @@
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)
next prev parent reply other threads:[~2004-07-15 0:39 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-07-15 0:16 [BK PATCH] Driver Core patches for 2.6.8-rc1 Greg KH
2004-07-15 0:18 ` [PATCH] " Greg KH
2004-07-15 0:18 ` Greg KH
2004-07-15 0:18 ` Greg KH
2004-07-15 0:18 ` Greg KH
2004-07-15 0:18 ` Greg KH
2004-07-15 0:18 ` Greg KH
2004-07-15 0:18 ` Greg KH
2004-07-15 0:18 ` Greg KH [this message]
2004-07-15 0:18 ` Greg KH
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=10898507032467@kroah.com \
--to=greg@kroah.com \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox