Re: [linux-next:master 5519/11156] kernel/bpf/bpf_struct_ops.c:247:16: warning: bitwise operation between different enumeration types ('enum bpf_type_flag' and 'enum bpf_reg_type')

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Mar 1, 2024 at 10:26 AM Kui-Feng Lee <sinquersw@xxxxxxxxx> wrote:
>
> For BPF,
>
> We have a lot of code mixing bpf_type_flag and bpf_reg_type in bpf.
> They cause the warning messages described in the message following.
> Do we want to fix them all, or keep them as they are?
>
> They can be fixed by merging two enum types or casting here and there if
> we want. Any other idea?

We probably should add -Wno-enum-enum-conversion to kernel/bpf/Makefile instead.





[Index of Archives]     [Linux Samsung SoC]     [Linux Rockchip SoC]     [Linux Actions SoC]     [Linux for Synopsys ARC Processors]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]


  Powered by Linux