From: Julia Lawall Date: Sun, 6 Nov 2011 13:26:48 +0000 (+0100) Subject: net/mac80211/debugfs.c: use kstrtoul, etc X-Git-Tag: v3.3-rc1~182^2~44^2~483 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=61e3f32c11c35e5a54d37d98505cb29db639cfdb;p=platform%2Fkernel%2Flinux-exynos.git net/mac80211/debugfs.c: use kstrtoul, etc Use kstrtoul, etc instead of the now deprecated strict_strtoul, etc. A semantic patch rule for the kstrtoul case is as follows: (http://coccinelle.lip6.fr/) // @@ expression a,b; {int,long} *c; @@ -strict_strtoul +kstrtoul (a,b,c) // Signed-off-by: Julia Lawall Signed-off-by: John W. Linville --- diff --git a/net/mac80211/debugfs.c b/net/mac80211/debugfs.c index 883996b..00cefcb 100644 --- a/net/mac80211/debugfs.c +++ b/net/mac80211/debugfs.c @@ -190,7 +190,7 @@ static ssize_t uapsd_max_sp_len_write(struct file *file, return -EFAULT; buf[len] = '\0'; - ret = strict_strtoul(buf, 0, &val); + ret = kstrtoul(buf, 0, &val); if (ret) return -EINVAL;