mirror of
https://github.com/SCST-project/scst.git
synced 2026-05-17 18:51:27 +00:00
scst_local compiles again without triggering a compiler warning on kernels
2.6.27 and before. git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2082 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
@@ -97,7 +97,12 @@ static atomic_t num_aborts = ATOMIC_INIT(0);
|
||||
static atomic_t num_dev_resets = ATOMIC_INIT(0);
|
||||
static atomic_t num_target_resets = ATOMIC_INIT(0);
|
||||
|
||||
bool scst_local_add_default_tgt;
|
||||
#if LINUX_VERSION_CODE <= KERNEL_VERSION(2, 6, 27) \
|
||||
|| defined(RHEL_MAJOR) && RHEL_MAJOR -0 <= 5
|
||||
static int scst_local_add_default_tgt;
|
||||
#else
|
||||
static bool scst_local_add_default_tgt;
|
||||
#endif
|
||||
module_param_named(add_default_tgt, scst_local_add_default_tgt, bool, S_IRUGO);
|
||||
MODULE_PARM_DESC(add_default_host, "add or not (default) on start default "
|
||||
"target scst_local_tgt with default session scst_local_host");
|
||||
|
||||
Reference in New Issue
Block a user