• Arnd Bergmann's avatar
    asm-generic: percpu: avoid Wshadow warning · 29813a22
    Arnd Bergmann authored
    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: default avatarArnd Bergmann <arnd@arndb.de>
    Reviewed-by: default avatarLuc Van Oostenryck <luc.vanoostenryck@gmail.com>
    Signed-off-by: default avatarDennis Zhou <dennis@kernel.org>
    29813a22
percpu.h 12.7 KB