diff options
author | John Crispin <john@openwrt.org> | 2013-07-27 09:23:18 +0000 |
---|---|---|
committer | John Crispin <john@openwrt.org> | 2013-07-27 09:23:18 +0000 |
commit | 4176b6fdd30011a1b86fd14a2211b6e8a15d6140 (patch) | |
tree | 8eae5a3183396087f28700ab643b0fda780dce2a /package/kernel | |
parent | c4413b6e080904c76cea4ee1fe551cc5406407ca (diff) | |
download | mtk-20170518-4176b6fdd30011a1b86fd14a2211b6e8a15d6140.zip mtk-20170518-4176b6fdd30011a1b86fd14a2211b6e8a15d6140.tar.gz mtk-20170518-4176b6fdd30011a1b86fd14a2211b6e8a15d6140.tar.bz2 |
strict_strtoul is obsolete, use kstrtoul instead
based on http://patchwork.openwrt.org/patch/3827/
Signed-off-by: John Crispin <blogic@openwrt.org>
SVN-Revision: 37562
Diffstat (limited to 'package/kernel')
-rw-r--r-- | package/kernel/mac80211/patches/512-ath9k_channelbw_debugfs.patch | 2 | ||||
-rw-r--r-- | package/kernel/mac80211/patches/553-ath9k_debugfs_diag.patch | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/package/kernel/mac80211/patches/512-ath9k_channelbw_debugfs.patch b/package/kernel/mac80211/patches/512-ath9k_channelbw_debugfs.patch index 681291d..d6d1ae2 100644 --- a/package/kernel/mac80211/patches/512-ath9k_channelbw_debugfs.patch +++ b/package/kernel/mac80211/patches/512-ath9k_channelbw_debugfs.patch @@ -47,7 +47,7 @@ + return -EFAULT; + + buf[len] = '\0'; -+ if (strict_strtoul(buf, 0, &chan_bw)) ++ if (kstrtoul(buf, 0, &chan_bw)) + return -EINVAL; + + sc->chan_bw = chan_bw; diff --git a/package/kernel/mac80211/patches/553-ath9k_debugfs_diag.patch b/package/kernel/mac80211/patches/553-ath9k_debugfs_diag.patch index db380b0..7cf1c2a 100644 --- a/package/kernel/mac80211/patches/553-ath9k_debugfs_diag.patch +++ b/package/kernel/mac80211/patches/553-ath9k_debugfs_diag.patch @@ -30,7 +30,7 @@ + return -EFAULT; + + buf[len] = '\0'; -+ if (strict_strtoul(buf, 0, &diag)) ++ if (kstrtoul(buf, 0, &diag)) + return -EINVAL; + + ah->diag = diag; |