From 59c3619e85caafe0ff13231cec8290df9413badb Mon Sep 17 00:00:00 2001 From: Vladislav Bolkhovitin Date: Wed, 15 May 2013 05:43:24 +0000 Subject: [PATCH] ALUA checkpatch fix Avoid that checkpatch complains about strict_strtoul(). Signed-off-by: Bart Van Assche git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4850 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- scst/src/scst_sysfs.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scst/src/scst_sysfs.c b/scst/src/scst_sysfs.c index ad095e0a2..6749ef3c7 100644 --- a/scst/src/scst_sysfs.c +++ b/scst/src/scst_sysfs.c @@ -5092,7 +5092,11 @@ static int scst_tg_preferred_store_work_fn(struct scst_sysfs_work_item *w) TRACE_ENTRY(); cmd = w->buf; tg = container_of(w->kobj, struct scst_target_group, kobj); +#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 39) + res = kstrtoul(cmd, 0, &preferred); +#else res = strict_strtoul(cmd, 0, &preferred); +#endif if (res) goto out; res = -EINVAL;