]> git.baikalelectronics.ru Git - kernel.git/commit
asm-generic: percpu: avoid Wshadow warning
authorArnd Bergmann <arnd@arndb.de>
Wed, 21 Oct 2020 15:18:05 +0000 (17:18 +0200)
committerArnd Bergmann <arnd@arndb.de>
Mon, 26 Oct 2020 15:49:12 +0000 (16:49 +0100)
commitc26c72b6dc6be7563e2f72a066589f698bd74aca
tree275ae2f9354fd82e959f3dad52112b8ba3554a61
parent66c51398ca21098524f0663c7a628e2825f7b121
asm-generic: percpu: avoid Wshadow warning

Nesting macros that use the same local variable names causes
warnings when building with "make W=2":

include/asm-generic/percpu.h:117:14: warning: declaration of '__ret' shadows a previous local [-Wshadow]
include/asm-generic/percpu.h:126:14: warning: declaration of '__ret' shadows a previous local [-Wshadow]

These are fairly harmless, but since the warning comes from
a global header, the warning happens every time the headers
are included, which is fairly annoying.

Rename the variables to avoid shadowing and shut up the warning.

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