From 3943177f675a31346f3977372d8956ef0275a3c3 Mon Sep 17 00:00:00 2001 From: Vladislav Bolkhovitin Date: Mon, 26 Jan 2009 12:57:22 +0000 Subject: [PATCH] Fixes wrong usage of the last parameter of module_param_named() git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@639 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- scst/src/dev_handlers/scst_vdisk.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scst/src/dev_handlers/scst_vdisk.c b/scst/src/dev_handlers/scst_vdisk.c index 06a8896c6..847a550fa 100644 --- a/scst/src/dev_handlers/scst_vdisk.c +++ b/scst/src/dev_handlers/scst_vdisk.c @@ -241,11 +241,11 @@ struct scst_vdisk_thr { static struct kmem_cache *vdisk_thr_cachep; -static int num_threads; - #define DEF_NUM_THREADS 5 -module_param_named(num_threads, num_threads, int, DEF_NUM_THREADS); +static int num_threads = DEF_NUM_THREADS; + +module_param_named(num_threads, num_threads, int, 0); MODULE_PARM_DESC(num_threads, "vdisk threads count"); static int vdisk_attach(struct scst_device *dev);