diff options
author | Arnd Bergmann <arnd@arndb.de> | 2020-10-26 17:50:38 +0100 |
---|---|---|
committer | Peter Zijlstra <peterz@infradead.org> | 2020-12-03 11:20:50 +0100 |
commit | a07c45312f06e288417049208c344ad76074627d (patch) | |
tree | 21136250c13ba71482727109bfe2866c147c463e /init | |
parent | futex: Remove unused empty compat_exit_robust_list() (diff) | |
download | linux-a07c45312f06e288417049208c344ad76074627d.tar.xz linux-a07c45312f06e288417049208c344ad76074627d.zip |
seqlock: avoid -Wshadow warnings
When building with W=2, there is a flood of warnings about the seqlock
macros shadowing local variables:
19806 linux/seqlock.h:331:11: warning: declaration of 'seq' shadows a previous local [-Wshadow]
48 linux/seqlock.h:348:11: warning: declaration of 'seq' shadows a previous local [-Wshadow]
8 linux/seqlock.h:379:11: warning: declaration of 'seq' shadows a previous local [-Wshadow]
Prefix the local variables to make the warning useful elsewhere again.
Fixes: 52ac39e5db51 ("seqlock: seqcount_t: Implement all read APIs as statement expressions")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://lkml.kernel.org/r/20201026165044.3722931-1-arnd@kernel.org
Diffstat (limited to 'init')
0 files changed, 0 insertions, 0 deletions