From 19a03ed163d32593b1fff7ebb5e90a52624d5876 Mon Sep 17 00:00:00 2001 From: Gleb Chesnokov Date: Mon, 20 Jun 2022 14:20:25 +0300 Subject: [PATCH] scst_main: Use bool type for boolean module params This patch doesn't change any functionality. --- scst/src/scst_main.c | 8 ++++---- scst/src/scst_priv.h | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/scst/src/scst_main.c b/scst/src/scst_main.c index 4b57d5793..4371ba206 100644 --- a/scst/src/scst_main.c +++ b/scst/src/scst_main.c @@ -158,8 +158,8 @@ cpumask_t default_cpu_mask; static unsigned int scst_max_cmd_mem; unsigned int scst_max_dev_cmd_mem; -int scst_forcibly_close_sessions; -int scst_auto_cm_assignment = true; +bool scst_forcibly_close_sessions; +bool scst_auto_cm_assignment = true; spinlock_t scst_measure_latency_lock; atomic_t scst_measure_latency; @@ -175,13 +175,13 @@ module_param_named(scst_max_dev_cmd_mem, scst_max_dev_cmd_mem, int, S_IRUGO); MODULE_PARM_DESC(scst_max_dev_cmd_mem, "Maximum memory allowed to be consumed " "by all SCSI commands of a device at any given time in MB"); -module_param_named(forcibly_close_sessions, scst_forcibly_close_sessions, int, +module_param_named(forcibly_close_sessions, scst_forcibly_close_sessions, bool, S_IWUSR | S_IRUGO); MODULE_PARM_DESC(forcibly_close_sessions, "If enabled, close the sessions associated with an access control group (ACG)" " when an ACG is deleted via sysfs instead of returning -EBUSY"); -module_param_named(auto_cm_assignment, scst_auto_cm_assignment, int, +module_param_named(auto_cm_assignment, scst_auto_cm_assignment, bool, S_IWUSR | S_IRUGO); MODULE_PARM_DESC(auto_cm_assignment, "Enables the copy managers auto registration"); diff --git a/scst/src/scst_priv.h b/scst/src/scst_priv.h index 297394649..ce5b5eb55 100644 --- a/scst/src/scst_priv.h +++ b/scst/src/scst_priv.h @@ -152,8 +152,8 @@ extern int scst_threads; extern unsigned int scst_max_dev_cmd_mem; -extern int scst_forcibly_close_sessions; -extern int scst_auto_cm_assignment; +extern bool scst_forcibly_close_sessions; +extern bool scst_auto_cm_assignment; extern mempool_t *scst_mgmt_mempool; extern mempool_t *scst_mgmt_stub_mempool;