From: Andrew Morton Cc: Satyam Sharma Signed-off-by: Andrew Morton --- include/linux/kernel.h | 3 ++- lib/vsprintf.c | 1 - 2 files changed, 2 insertions(+), 2 deletions(-) diff -puN include/linux/kernel.h~introduce-strtol_check_range-fix include/linux/kernel.h --- a/include/linux/kernel.h~introduce-strtol_check_range-fix +++ a/include/linux/kernel.h @@ -121,7 +121,8 @@ extern unsigned long simple_strtoul(cons extern long simple_strtol(const char *,char **,unsigned int); extern unsigned long long simple_strtoull(const char *,char **,unsigned int); extern long long simple_strtoll(const char *,char **,unsigned int); -extern long strtol_check_range(const char *,long,long,unsigned int); +extern long strtol_check_range(const char *cp, long min, long max, + unsigned int base); extern int sprintf(char * buf, const char * fmt, ...) __attribute__ ((format (printf, 2, 3))); extern int vsprintf(char *buf, const char *, va_list) diff -puN lib/vsprintf.c~introduce-strtol_check_range-fix lib/vsprintf.c --- a/lib/vsprintf.c~introduce-strtol_check_range-fix +++ a/lib/vsprintf.c @@ -153,7 +153,6 @@ long strtol_check_range(const char *cp, return ret; } - EXPORT_SYMBOL(strtol_check_range); static int skip_atoi(const char **s) _