From: Julia Lawall Date: Sun, 6 Nov 2011 13:26:48 +0000 (+0100) Subject: net/mac80211/debugfs.c: use kstrtoul, etc X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=61e3f32c11c35e5a54d37d98505cb29db639cfdb;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.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 883996b2f99f..00cefcb493eb 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;