aboutsummaryrefslogtreecommitdiff
path: root/tools/testing/selftests/bpf/progs/test_autoload.c
diff options
context:
space:
mode:
authorVictor Erminpour <[email protected]>2022-02-09 16:28:38 -0800
committerDavid S. Miller <[email protected]>2022-02-10 15:29:39 +0000
commitc4416f5c2eb3ed48dfba265e628a6e52da962f03 (patch)
tree39018d7e473509138778d0391f2de9bf0890eda9 /tools/testing/selftests/bpf/progs/test_autoload.c
parent9ccc6e0c8959a019bb40f6b18704b142c04b19a8 (diff)
net: mpls: Fix GCC 12 warning
When building with automatic stack variable initialization, GCC 12 complains about variables defined outside of switch case statements. Move the variable outside the switch, which silences the warning: ./net/mpls/af_mpls.c:1624:21: error: statement will never be executed [-Werror=switch-unreachable] 1624 | int err; | ^~~ Signed-off-by: Victor Erminpour <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/testing/selftests/bpf/progs/test_autoload.c')
0 files changed, 0 insertions, 0 deletions