From: Jingoo Han <jg1.han@samsung.com>
To: 'James Bottomley' <JBottomley@Parallels.com>
Cc: 'James Bottomley' <jejb@kernel.org>,
linux-scsi@vger.kernel.org, 'Jingoo Han' <jg1.han@samsung.com>,
'Anil Ravindranath' <anil_ravindranath@pmc-sierra.com>
Subject: [PATCH] scsi: replace strict_strtoul() with kstrtoul()
Date: Sat, 01 Jun 2013 16:29:06 +0900 [thread overview]
Message-ID: <001201ce5e99$b2ea7480$18bf5d80$@samsung.com> (raw)
The usage of strict_strtoul() is not preferred, because
strict_strtoul() is obsolete. Thus, kstrtoul() should be
used.
Signed-off-by: Jingoo Han <jg1.han@samsung.com>
---
drivers/scsi/pmcraid.c | 2 +-
drivers/scsi/scsi_sysfs.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/scsi/pmcraid.c b/drivers/scsi/pmcraid.c
index 8e1b737..948232a 100644
--- a/drivers/scsi/pmcraid.c
+++ b/drivers/scsi/pmcraid.c
@@ -4204,7 +4204,7 @@ static ssize_t pmcraid_store_log_level(
struct pmcraid_instance *pinstance;
unsigned long val;
- if (strict_strtoul(buf, 10, &val))
+ if (kstrtoul(buf, 10, &val))
return -EINVAL;
/* log-level should be from 0 to 2 */
if (val > 2)
diff --git a/drivers/scsi/scsi_sysfs.c b/drivers/scsi/scsi_sysfs.c
index 931a7d9..bf36b45 100644
--- a/drivers/scsi/scsi_sysfs.c
+++ b/drivers/scsi/scsi_sysfs.c
@@ -790,7 +790,7 @@ sdev_store_queue_ramp_up_period(struct device *dev,
struct scsi_device *sdev = to_scsi_device(dev);
unsigned long period;
- if (strict_strtoul(buf, 10, &period))
+ if (kstrtoul(buf, 10, &period))
return -EINVAL;
sdev->queue_ramp_up_period = msecs_to_jiffies(period);
--
1.7.10.4
next reply other threads:[~2013-06-01 7:29 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-06-01 7:29 Jingoo Han [this message]
2013-06-02 11:28 ` [PATCH] scsi: replace strict_strtoul() with kstrtoul() Andy Shevchenko
-- strict thread matches above, loose matches on Subject: below --
2013-07-19 6:54 Jingoo Han
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='001201ce5e99$b2ea7480$18bf5d80$@samsung.com' \
--to=jg1.han@samsung.com \
--cc=JBottomley@Parallels.com \
--cc=anil_ravindranath@pmc-sierra.com \
--cc=jejb@kernel.org \
--cc=linux-scsi@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox