Skip to content

Commit b4e2fb1

Browse files
He Zhekernel-patches-bot
He Zhe
authored andcommitted
powerpc: net: bpf_jit_comp: Fix misuse of fallthrough
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_)) ^~~~~~~~~~~~~ Signed-off-by: He Zhe <[email protected]>
1 parent 06eb722 commit b4e2fb1

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

arch/powerpc/net/bpf_jit_comp.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -475,7 +475,6 @@ static int bpf_jit_build_body(struct bpf_prog *fp, u32 *image,
475475
case BPF_JMP | BPF_JSET | BPF_K:
476476
case BPF_JMP | BPF_JSET | BPF_X:
477477
true_cond = COND_NE;
478-
fallthrough;
479478
cond_branch:
480479
/* same targets, can avoid doing the test :) */
481480
if (filter[i].jt == filter[i].jf) {

0 commit comments

Comments
 (0)