]> git.baikalelectronics.ru Git - kernel.git/commit
ctype.h: remove duplicate isdigit() helper
authorArnd Bergmann <arnd@arndb.de>
Mon, 19 Oct 2020 07:35:39 +0000 (09:35 +0200)
committerArnd Bergmann <arnd@arndb.de>
Wed, 28 Oct 2020 13:55:36 +0000 (14:55 +0100)
commitaae047e4f0c46a4d28b077c4b489b10cf5d5738d
tree3e588a89ccaddec4fce4a183b3e9ccaa7c60fc51
parent166f436e0a221d4b9df4c0448acad2741bbbdae7
ctype.h: remove duplicate isdigit() helper

gcc warns a few thousand times about the isdigit() shadow:

include/linux/ctype.h:26:19: warning: declaration of 'isdigit' shadows a built-in function [-Wshadow]

As there is already a compiler builtin, just use that, and make
it clear we do that by defining a macro.  Unfortunately, clang
does not have the isdigit() builtin, so this has to be conditional.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
include/linux/compiler_types.h
include/linux/ctype.h