]> git.baikalelectronics.ru Git - kernel.git/commit
bpf: Correctly annotate implicit fall through in bpf_base_func_proto
authorMathieu Malaterre <malat@debian.org>
Wed, 16 Jan 2019 19:35:41 +0000 (20:35 +0100)
committerDaniel Borkmann <daniel@iogearbox.net>
Thu, 17 Jan 2019 15:53:03 +0000 (16:53 +0100)
commitbaaa251c1340a4127506d96d6e8055c2a12ddd2f
tree368a6955adfff450f42397a57e85110e5db6177d
parent4f17f368ec06958cac0d8e11e8b989c924b56fd0
bpf: Correctly annotate implicit fall through in bpf_base_func_proto

There is a plan to build the kernel with -Wimplicit-fallthrough and
this place in the code produced a warnings (W=1).

To preserve as much of the existing comment only change a ‘:’ into a ‘,’.
This is enough change, to match the regular expression expected by GCC.

This commit removes the following warning:

  net/core/filter.c:5310:6: warning: this statement may fall through [-Wimplicit-fallthrough=]

Signed-off-by: Mathieu Malaterre <malat@debian.org>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
net/core/filter.c