Commit 462e4711 authored by Eldad Zack's avatar Eldad Zack Committed by Linus Torvalds

simple_strto*: annotate function as obsolete

Update the documentation for simple_strto* to reflect that it has been
obsoleted and advise the usage of kstrto*.
Signed-off-by: default avatarEldad Zack <eldad@fogrefinery.com>
Cc: J. Bruce Fields <bfields@fieldses.org>
Cc: Joe Perches <joe@perches.com>
Cc: Randy Dunlap <rdunlap@xenotime.net>
Cc: Alexey Dobriyan <adobriyan@gmail.com>
Cc: Rob Landley <rob@landley.net>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 4c925d60
...@@ -38,6 +38,8 @@ ...@@ -38,6 +38,8 @@
* @cp: The start of the string * @cp: The start of the string
* @endp: A pointer to the end of the parsed string will be placed here * @endp: A pointer to the end of the parsed string will be placed here
* @base: The number base to use * @base: The number base to use
*
* This function is obsolete. Please use kstrtoull instead.
*/ */
unsigned long long simple_strtoull(const char *cp, char **endp, unsigned int base) unsigned long long simple_strtoull(const char *cp, char **endp, unsigned int base)
{ {
...@@ -61,6 +63,8 @@ EXPORT_SYMBOL(simple_strtoull); ...@@ -61,6 +63,8 @@ EXPORT_SYMBOL(simple_strtoull);
* @cp: The start of the string * @cp: The start of the string
* @endp: A pointer to the end of the parsed string will be placed here * @endp: A pointer to the end of the parsed string will be placed here
* @base: The number base to use * @base: The number base to use
*
* This function is obsolete. Please use kstrtoul instead.
*/ */
unsigned long simple_strtoul(const char *cp, char **endp, unsigned int base) unsigned long simple_strtoul(const char *cp, char **endp, unsigned int base)
{ {
...@@ -73,6 +77,8 @@ EXPORT_SYMBOL(simple_strtoul); ...@@ -73,6 +77,8 @@ EXPORT_SYMBOL(simple_strtoul);
* @cp: The start of the string * @cp: The start of the string
* @endp: A pointer to the end of the parsed string will be placed here * @endp: A pointer to the end of the parsed string will be placed here
* @base: The number base to use * @base: The number base to use
*
* This function is obsolete. Please use kstrtol instead.
*/ */
long simple_strtol(const char *cp, char **endp, unsigned int base) long simple_strtol(const char *cp, char **endp, unsigned int base)
{ {
...@@ -88,6 +94,8 @@ EXPORT_SYMBOL(simple_strtol); ...@@ -88,6 +94,8 @@ EXPORT_SYMBOL(simple_strtol);
* @cp: The start of the string * @cp: The start of the string
* @endp: A pointer to the end of the parsed string will be placed here * @endp: A pointer to the end of the parsed string will be placed here
* @base: The number base to use * @base: The number base to use
*
* This function is obsolete. Please use kstrtoll instead.
*/ */
long long simple_strtoll(const char *cp, char **endp, unsigned int base) long long simple_strtoll(const char *cp, char **endp, unsigned int base)
{ {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment