* Re: [PATCH] more MODULE_PARM conversions
[not found] <200411112325.iABNPsWo013185@hera.kernel.org>
@ 2004-11-12 11:34 ` Geert Uytterhoeven
2004-11-13 22:37 ` [PATCH] scsi/mesh: module_param corrections Randy.Dunlap
0 siblings, 1 reply; 2+ messages in thread
From: Geert Uytterhoeven @ 2004-11-12 11:34 UTC (permalink / raw)
To: Randy Dunlap; +Cc: Andrew Morton, Linus Torvalds, Linux Kernel Development
On Thu, 11 Nov 2004, Linux Kernel Mailing List wrote:
> ChangeSet 1.2156, 2004/11/11 13:50:06-08:00, rddunlap@osdl.org
>
> [PATCH] more MODULE_PARM conversions
>
> Convert MODULE_PARM() to module_param().
>
> Signed-off-by: Randy Dunlap <rddunlap@osdl.org>
> Signed-off-by: Andrew Morton <akpm@osdl.org>
> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
> diff -Nru a/drivers/scsi/mesh.c b/drivers/scsi/mesh.c
> --- a/drivers/scsi/mesh.c 2004-11-11 15:26:05 -08:00
> +++ b/drivers/scsi/mesh.c 2004-11-11 15:26:05 -08:00
> @@ -60,22 +60,22 @@
> MODULE_DESCRIPTION("PowerMac MESH SCSI driver");
> MODULE_LICENSE("GPL");
>
> -MODULE_PARM(sync_rate, "i");
> -MODULE_PARM_DESC(sync_rate, "Synchronous rate (0..10, 0=async)");
> -MODULE_PARM(sync_targets, "i");
> -MODULE_PARM_DESC(sync_targets, "Bitmask of targets allowed to set synchronous");
> -MODULE_PARM(resel_targets, "i");
> -MODULE_PARM_DESC(resel_targets, "Bitmask of targets allowed to set disconnect");
> -MODULE_PARM(debug_targets, "i");
> -MODULE_PARM_DESC(debug_targets, "Bitmask of debugged targets");
> -MODULE_PARM(init_reset_delay, "i");
> -MODULE_PARM_DESC(init_reset_delay, "Initial bus reset delay (0=no reset)");
> -
> static int sync_rate = CONFIG_SCSI_MESH_SYNC_RATE;
> static int sync_targets = 0xff;
> static int resel_targets = 0xff;
> static int debug_targets = 0; /* print debug for these targets */
> static int init_reset_delay = CONFIG_SCSI_MESH_RESET_DELAY_MS;
> +
> +MODULE_PARM(sync_rate, int, 0);
^^^^^^^^^^^
Shouldn't these be module_parm?
> +MODULE_PARM_DESC(sync_rate, "Synchronous rate (0..10, 0=async)");
> +MODULE_PARM(sync_targets, int, 0);
> +MODULE_PARM_DESC(sync_targets, "Bitmask of targets allowed to set synchronous");
> +MODULE_PARM(resel_targets, int, 0);
> +MODULE_PARM_DESC(resel_targets, "Bitmask of targets allowed to set disconnect");
> +MODULE_PARM(debug_targets, int, 0644);
> +MODULE_PARM_DESC(debug_targets, "Bitmask of debugged targets");
> +MODULE_PARM(init_reset_delay, int, 0);
> +MODULE_PARM_DESC(init_reset_delay, "Initial bus reset delay (0=no reset)");
>
> static int mesh_sync_period = 100;
> static int mesh_sync_offset = 0;
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org
In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
^ permalink raw reply [flat|nested] 2+ messages in thread
* [PATCH] scsi/mesh: module_param corrections
2004-11-12 11:34 ` [PATCH] more MODULE_PARM conversions Geert Uytterhoeven
@ 2004-11-13 22:37 ` Randy.Dunlap
0 siblings, 0 replies; 2+ messages in thread
From: Randy.Dunlap @ 2004-11-13 22:37 UTC (permalink / raw)
To: Geert Uytterhoeven
Cc: Andrew Morton, Linus Torvalds, Linux Kernel Development
[-- Attachment #1: Type: text/plain, Size: 266 bytes --]
Correct MODULE_PARM to module_param (somehow I changed the
macro parameters but not the macro invocation).
Signed-off-by: Randy Dunlap <rddunlap@osdl.org>
diffstat:=
drivers/scsi/mesh.c | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
--
[-- Attachment #2: mesh_modprm.patch --]
[-- Type: text/x-patch, Size: 1178 bytes --]
diff -Naurp ./drivers/scsi/mesh.c~mesh_modprm ./drivers/scsi/mesh.c
--- ./drivers/scsi/mesh.c~mesh_modprm 2004-11-13 14:19:12.141219000 -0800
+++ ./drivers/scsi/mesh.c 2004-11-13 14:31:47.915324320 -0800
@@ -66,15 +66,15 @@ static int resel_targets = 0xff;
static int debug_targets = 0; /* print debug for these targets */
static int init_reset_delay = CONFIG_SCSI_MESH_RESET_DELAY_MS;
-MODULE_PARM(sync_rate, int, 0);
+module_param(sync_rate, int, 0);
MODULE_PARM_DESC(sync_rate, "Synchronous rate (0..10, 0=async)");
-MODULE_PARM(sync_targets, int, 0);
+module_param(sync_targets, int, 0);
MODULE_PARM_DESC(sync_targets, "Bitmask of targets allowed to set synchronous");
-MODULE_PARM(resel_targets, int, 0);
+module_param(resel_targets, int, 0);
MODULE_PARM_DESC(resel_targets, "Bitmask of targets allowed to set disconnect");
-MODULE_PARM(debug_targets, int, 0644);
+module_param(debug_targets, int, 0644);
MODULE_PARM_DESC(debug_targets, "Bitmask of debugged targets");
-MODULE_PARM(init_reset_delay, int, 0);
+module_param(init_reset_delay, int, 0);
MODULE_PARM_DESC(init_reset_delay, "Initial bus reset delay (0=no reset)");
static int mesh_sync_period = 100;
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2004-11-13 22:39 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <200411112325.iABNPsWo013185@hera.kernel.org>
2004-11-12 11:34 ` [PATCH] more MODULE_PARM conversions Geert Uytterhoeven
2004-11-13 22:37 ` [PATCH] scsi/mesh: module_param corrections Randy.Dunlap
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.