Re: [PATCH 4/4] context_tracking: uninitialize static variables

2020-08-03 Thread Jules Irenge
On Mon, 3 Aug 2020, pet...@infradead.org wrote: > So personally I prefer having the '= false' there. It used to be that > compilers were stupid and would put any initialized static variable in > .data, even if it was initialized with 0. But AFAIK compilers are no > longer that stupid. >

Re: [PATCH 4/4] context_tracking: uninitialize static variables

2020-08-03 Thread peterz
On Sat, Aug 01, 2020 at 07:46:03PM +0100, Jules Irenge wrote: > Checkpatch tool reports an error at a staic variable declaration > > "ERROR: do not initialise statics to false" > > This is due to the fact that this variable is stored in the buffer > In the .bss section, one can not set an

[PATCH 4/4] context_tracking: uninitialize static variables

2020-08-01 Thread Jules Irenge
Checkpatch tool reports an error at a staic variable declaration "ERROR: do not initialise statics to false" This is due to the fact that this variable is stored in the buffer In the .bss section, one can not set an initial value Here we can trust the compiler to automatically set them to false.