OSDN Git Service

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)
commit80b4707a2f16e8a018543635ebe31cae53783c72
tree275ae2f9354fd82e959f3dad52112b8ba3554a61
parent2a45a08a5bcfb97a211c5064e81cbbbabbc32e7a
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