Merged.

Bruce

In message: [linux-yocto][linux-yocto-dev][PATCH] powerpc: net: bpf_jit_comp: 
Fix misuse of fallthrough
on 28/09/2020 zhe...@windriver.com wrote:

> From: He Zhe <zhe...@windriver.com>
> 
> 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_))
>                           ^~~~~~~~~~~~~
> 
> Link: 
> https://lore.kernel.org/lkml/20200928090023.38117-1-zhe...@windriver.com/
> Signed-off-by: He Zhe <zhe...@windriver.com>
> ---
>  arch/powerpc/net/bpf_jit_comp.c | 1 -
>  1 file changed, 1 deletion(-)
> 
> diff --git a/arch/powerpc/net/bpf_jit_comp.c b/arch/powerpc/net/bpf_jit_comp.c
> index 78d61f97371e..e809cb5a1631 100644
> --- a/arch/powerpc/net/bpf_jit_comp.c
> +++ b/arch/powerpc/net/bpf_jit_comp.c
> @@ -475,7 +475,6 @@ static int bpf_jit_build_body(struct bpf_prog *fp, u32 
> *image,
>               case BPF_JMP | BPF_JSET | BPF_K:
>               case BPF_JMP | BPF_JSET | BPF_X:
>                       true_cond = COND_NE;
> -                     fallthrough;
>               cond_branch:
>                       /* same targets, can avoid doing the test :) */
>                       if (filter[i].jt == filter[i].jf) {
> -- 
> 2.26.2
> 
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#9103): 
https://lists.yoctoproject.org/g/linux-yocto/message/9103
Mute This Topic: https://lists.yoctoproject.org/mt/77170627/21656
Group Owner: linux-yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to