]> git.baikalelectronics.ru Git - kernel.git/commit
bpf: Fix -Wshadow warnings
authorArnd Bergmann <arnd@arndb.de>
Mon, 26 Oct 2020 16:20:50 +0000 (17:20 +0100)
committerDaniel Borkmann <daniel@iogearbox.net>
Tue, 27 Oct 2020 15:22:43 +0000 (16:22 +0100)
commit1e11d332fcc8962088fc093bb6eb306d0e0a2521
tree145e8cb5d04349146adbfe0da23c9d0d65f1e9cc
parent9d3112b72d87deecdd521e648b737c1c51ca5974
bpf: Fix -Wshadow warnings

There are thousands of warnings about one macro in a W=2 build:

  include/linux/filter.h:561:6: warning: declaration of 'ret' shadows a previous local [-Wshadow]

Prefix all the locals in that macro with __ to avoid most of
these warnings.

Fixes: dea4ada9e4ad ("bpf: enable program stats")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/bpf/20201026162110.3710415-1-arnd@kernel.org
include/linux/filter.h