This patch replace the obsolete simple_strto<foo> with kstrto<foo> Signed-off-by: Abhijit Pawar <abhi.c.pawar@xxxxxxxxx> --- include/linux/sunrpc/cache.h | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/include/linux/sunrpc/cache.h b/include/linux/sunrpc/cache.h index 5dc9ee4..96d2545 100644 --- a/include/linux/sunrpc/cache.h +++ b/include/linux/sunrpc/cache.h @@ -218,7 +218,7 @@ static inline int get_int(char **bpp, int *anint) { char buf[50]; char *ep; - int rv; + int rv, rc; int len = qword_get(bpp, buf, sizeof(buf)); if (len < 0) @@ -226,8 +226,8 @@ static inline int get_int(char **bpp, int *anint) if (len == 0) return -ENOENT; - rv = simple_strtol(buf, &ep, 0); - if (*ep) + rc = kstrtoint(buf, 0, &rv); + if (rc) return -EINVAL; *anint = rv; -- 1.7.7.6 -- To unsubscribe from this list: send the line "unsubscribe linux-nfs" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html