Re: [PATCH bpf-next] libbpf: fix non-C89 loop variable declaration in gen_loader.c

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

 



On Sat, Nov 6, 2021 at 9:38 AM Alexei Starovoitov
<alexei.starovoitov@xxxxxxxxx> wrote:
>
> On Fri, Nov 5, 2021 at 12:11 PM Andrii Nakryiko <andrii@xxxxxxxxxx> wrote:
> >
> > Fix the `int i` declaration inside the for statement. This is non-C89
> > compliant. See [0] for user report breaking BCC build.
> >
> >   [0] https://github.com/libbpf/libbpf/issues/403
>
> I'd prefer to fix bcc and/or its derivatives instead.
> It's year 2021.

Fixing BCC and derivatives is a separate topic. This is the only
instance of non-C89 compliant for() loop in libbpf and I'd prefer to
fix it at the very least for style consistency.



[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