]> git.baikalelectronics.ru Git - kernel.git/commit
asm-generic: fix ffs -Wshadow warning
authorArnd Bergmann <arnd@arndb.de>
Wed, 21 Oct 2020 15:19:09 +0000 (17:19 +0200)
committerArnd Bergmann <arnd@arndb.de>
Mon, 26 Oct 2020 16:00:29 +0000 (17:00 +0100)
commitef008280fd7b434ee1884dbc7e22f87fc8517e2c
tree291c3d97663858fe8f44446f99871848dbbf71e4
parentc26c72b6dc6be7563e2f72a066589f698bd74aca
asm-generic: fix ffs -Wshadow warning

gcc -Wshadow warns about the ffs() definition that has the
same name as the global ffs() built-in:

include/asm-generic/bitops/builtin-ffs.h:13:28: warning: declaration of 'ffs' shadows a built-in function [-Wshadow]

This is annoying because 'make W=2' warns every time this
header gets included.

Change it to use a #define instead, making callers directly
reference the builtin.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
include/asm-generic/bitops/builtin-ffs.h