]> git.baikalelectronics.ru Git - kernel.git/commit
bpf, powerpc: Fix misuse of fallthrough in bpf_jit_comp()
authorHe Zhe <zhe.he@windriver.com>
Mon, 28 Sep 2020 09:00:23 +0000 (17:00 +0800)
committerDaniel Borkmann <daniel@iogearbox.net>
Tue, 29 Sep 2020 14:39:11 +0000 (16:39 +0200)
commitbf9d108931c88b1c79c671edf886e77e317dc5ca
treed3c619e4944b92c96a794555ecc5b374609c74b7
parentb28abe3b729bb72bdde75dd072e051fbfb7dfce5
bpf, powerpc: Fix misuse of fallthrough in bpf_jit_comp()

The user defined label following "fallthrough" is not considered by GCC
and causes build failure.

kernel-source/include/linux/compiler_attributes.h:208:41: error: attribute
'fallthrough' not preceding a case label or default label [-Werror]
 208   define fallthrough _attribute((fallthrough_))
                          ^~~~~~~~~~~~~

Fixes: 79b7a0dd093d ("treewide: Use fallthrough pseudo-keyword")
Signed-off-by: He Zhe <zhe.he@windriver.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Cc: Gustavo A. R. Silva <gustavoars@kernel.org>
Link: https://lore.kernel.org/bpf/20200928090023.38117-1-zhe.he@windriver.com
arch/powerpc/net/bpf_jit_comp.c