diff options
| author | Alexey Dobriyan <[email protected]> | 2011-11-01 00:12:28 +0000 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2011-11-01 00:30:56 +0000 |
| commit | 1dff46d6987484eaa31f2fb1425216ba06418be3 (patch) | |
| tree | 421e53d64a066b1f756156bb1d37154c0a5eab6a /lib/bitmap.c | |
| parent | drivers/leds/leds-lp5521.c: check if reset is successful (diff) | |
| download | kernel-1dff46d6987484eaa31f2fb1425216ba06418be3.tar.gz kernel-1dff46d6987484eaa31f2fb1425216ba06418be3.zip | |
lib/kstrtox: common code between kstrto*() and simple_strto*() functions
Currently termination logic (\0 or \n\0) is hardcoded in _kstrtoull(),
avoid that for code reuse between kstrto*() and simple_strtoull().
Essentially, make them different only in termination logic.
simple_strtoull() (and scanf(), BTW) ignores integer overflow, that's a
bug we currently don't have guts to fix, making KSTRTOX_OVERFLOW hack
necessary.
Almost forgot: patch shrinks code size by about ~80 bytes on x86_64.
Signed-off-by: Alexey Dobriyan <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'lib/bitmap.c')
0 files changed, 0 insertions, 0 deletions
