diff options
| author | Heiko Schocher <[email protected]> | 2011-05-02 21:33:49 +0000 |
|---|---|---|
| committer | Wolfgang Denk <[email protected]> | 2011-05-12 21:07:06 +0200 |
| commit | a7fd0d9ffd32d99255d18aadc88a5ccfb1b09986 (patch) | |
| tree | 8c580f588e2c88fa22e6115f316603c1d30627ce /include/common.h | |
| parent | f0c0b3a9e6f28a34d6da5edabba1e874fdf8e675 (diff) | |
lib, vsprintf: introduce strict_strtoul
as checkpatch proposes to use strict_strtoul instead of
simple_strtoul, introduce it.
Ported this function from Linux 2.6.38 commit ID:
521cb40b0c44418a4fd36dc633f575813d59a43d
Signed-off-by: Heiko Schocher <[email protected]>
cc: Wolfgang Denk <[email protected]>
cc: Detlev Zundel <[email protected]>
cc: Valentin Longchamp <[email protected]>
cc: Holger Brunck <[email protected]>
Signed-off-by: Valentin Longchamp <[email protected]>
Diffstat (limited to 'include/common.h')
| -rw-r--r-- | include/common.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/common.h b/include/common.h index 00e266ed6fe..1e4a6a5757f 100644 --- a/include/common.h +++ b/include/common.h @@ -650,6 +650,7 @@ void udelay (unsigned long); /* lib/vsprintf.c */ ulong simple_strtoul(const char *cp,char **endp,unsigned int base); +int strict_strtoul(const char *cp, unsigned int base, unsigned long *res); unsigned long long simple_strtoull(const char *cp,char **endp,unsigned int base); long simple_strtol(const char *cp,char **endp,unsigned int base); void panic(const char *fmt, ...) |
