Re: [PATCH] checkpatch: do not apply "initialise globals to 0" check to BPF progs

2021-02-09 Thread Song Liu
> On Feb 8, 2021, at 10:29 PM, Joe Perches wrote: > > On Mon, 2021-02-08 at 15:40 -0800, Song Liu wrote: >> BPF programs explicitly initialise global variables to 0 to make sure >> clang (v10 or older) do not put the variables in the common section. >> Skip "initialise globals to 0" check for

Re: [PATCH] checkpatch: do not apply "initialise globals to 0" check to BPF progs

2021-02-08 Thread Joe Perches
On Mon, 2021-02-08 at 15:40 -0800, Song Liu wrote: > BPF programs explicitly initialise global variables to 0 to make sure > clang (v10 or older) do not put the variables in the common section. > Skip "initialise globals to 0" check for BPF programs to elimiate error > messages like: > >

Re: [PATCH] checkpatch: do not apply "initialise globals to 0" check to BPF progs

2021-02-08 Thread Joe Perches
On Mon, 2021-02-08 at 15:40 -0800, Song Liu wrote: > BPF programs explicitly initialise global variables to 0 to make sure > clang (v10 or older) do not put the variables in the common section. > Skip "initialise globals to 0" check for BPF programs to elimiate error > messages like: > >

[PATCH] checkpatch: do not apply "initialise globals to 0" check to BPF progs

2021-02-08 Thread Song Liu
BPF programs explicitly initialise global variables to 0 to make sure clang (v10 or older) do not put the variables in the common section. Skip "initialise globals to 0" check for BPF programs to elimiate error messages like: ERROR: do not initialise globals to 0 #19: FILE: