mirror of
https://github.com/SCST-project/scst.git
synced 2026-05-17 10:41:26 +00:00
Merge r7522 from trunk
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/3.3.x@7774 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
@@ -685,13 +685,9 @@ static ssize_t iscsi_acg_sess_dedicated_threads_store(struct kobject *kobj,
|
||||
|
||||
acg = container_of(kobj, struct scst_acg, acg_kobj);
|
||||
|
||||
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 39)
|
||||
res = kstrtoul(buf, 0, &val);
|
||||
#else
|
||||
res = strict_strtoul(buf, 0, &val);
|
||||
#endif
|
||||
if (res != 0) {
|
||||
PRINT_ERROR("strict_strtoul() for %s failed: %d ", buf, res);
|
||||
PRINT_ERROR("kstrtoul() for %s failed: %d ", buf, res);
|
||||
goto out;
|
||||
}
|
||||
|
||||
|
||||
@@ -3504,13 +3504,9 @@ static ssize_t scst_dev_sysfs_max_tgt_dev_commands_store(struct kobject *kobj,
|
||||
|
||||
dev = container_of(kobj, struct scst_device, dev_kobj);
|
||||
|
||||
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 39)
|
||||
res = kstrtol(buf, 0, &newtn);
|
||||
#else
|
||||
res = strict_strtol(buf, 0, &newtn);
|
||||
#endif
|
||||
if (res != 0) {
|
||||
PRINT_ERROR("strtol() for %s failed: %d ", buf, res);
|
||||
PRINT_ERROR("kstrtol() for %s failed: %d ", buf, res);
|
||||
goto out;
|
||||
}
|
||||
if (newtn < 0) {
|
||||
@@ -3567,13 +3563,9 @@ static ssize_t scst_dev_numa_node_id_store(struct kobject *kobj,
|
||||
|
||||
dev = container_of(kobj, struct scst_device, dev_kobj);
|
||||
|
||||
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 39)
|
||||
res = kstrtol(buf, 0, &newtn);
|
||||
#else
|
||||
res = strict_strtol(buf, 0, &newtn);
|
||||
#endif
|
||||
if (res != 0) {
|
||||
PRINT_ERROR("strtol() for %s failed: %d ", buf, res);
|
||||
PRINT_ERROR("kstrtol() for %s failed: %d ", buf, res);
|
||||
goto out;
|
||||
}
|
||||
BUILD_BUG_ON(NUMA_NO_NODE != -1);
|
||||
@@ -4344,11 +4336,7 @@ static ssize_t scst_sess_latency_show(struct kobject *kobj,
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 39)
|
||||
res = kstrtol(attr->attr.name + 1, 0, &sz);
|
||||
#else
|
||||
res = strict_strtol(attr->attr.name + 1, 0, &sz);
|
||||
#endif
|
||||
if (WARN_ON(res < 0))
|
||||
goto out;
|
||||
i = ilog2(sz) - SCST_STATS_LOG2_SZ_OFFSET;
|
||||
@@ -6945,11 +6933,7 @@ static ssize_t scst_measure_latency_store(struct kobject *kobj,
|
||||
long val;
|
||||
int res;
|
||||
|
||||
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 39)
|
||||
res = kstrtol(buf, 0, &val);
|
||||
#else
|
||||
res = strict_strtol(buf, 0, &val);
|
||||
#endif
|
||||
if (res < 0)
|
||||
goto out;
|
||||
|
||||
@@ -7336,11 +7320,7 @@ static ssize_t scst_force_global_sgv_pool_store(struct kobject *kobj,
|
||||
|
||||
TRACE_ENTRY();
|
||||
|
||||
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 39)
|
||||
res = kstrtoul(buf, 0, &v);
|
||||
#else
|
||||
res = strict_strtoul(buf, 0, &v);
|
||||
#endif
|
||||
if (res)
|
||||
goto out;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user