[PATCH] Fix compile error in realtime-lsm-source
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
realtime-lsm (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: realtime-lsm-source
Hello,
realtime-lsm hasn't been converted from MODULE_PARM to module_param. This patch takes care of that and restores its ability to be compiled.
--- realcap.c.orig 2004-05-10 19:54:16.000000000 -0400
+++ realcap.c 2006-11-04 23:45:49.000000000 -0500
@@ -33,19 +33,19 @@
/* module parameters */
static int any = 0; /* if TRUE, any process is realtime */
-MODULE_PARM(any, "i");
+module_param(any, int, 0444);
MODULE_
static int gid = -1; /* realtime group id, or NO_GROUP */
-MODULE_PARM(gid, "i");
+module_param(gid, int, 0444);
MODULE_
static int mlock = 1; /* enable mlock() privileges */
-MODULE_PARM(mlock, "i");
+module_
MODULE_
static int allcaps = 0; /* enable all capabilities */
-MODULE_
+module_
MODULE_
static kernel_cap_t cap_bset_save; /* place to save cap-bound */
Just noticed that the Ubuntu linux-kernel package for 2.6.17 in edgy already has this module, but that it's called realcap instead of realtime.
Also, it has a patch basically like mine, and like mine, it doesn't work. But that'll be a different bug report!
This can be ignored.