Re: [PATCH] perf/core: Do not initialise statics to 0 and add space before '{'

2020-05-08 Thread Kaige Li
Ok, I will pay attation. thank you. On 05/08/2020 04:25 PM, Peter Zijlstra wrote: Checkpatch can sod off. Please don't ever submit pure checkpatch patches to anything I maintain

Re: [PATCH] perf/core: Do not initialise statics to 0 and add space before '{'

2020-05-08 Thread Peter Zijlstra
On Fri, May 08, 2020 at 12:04:23PM +0800, Kaige Li wrote: > Fix the following checkpatch errors: > > ERROR: do not initialise statics to 0 > #10616: FILE: ./kernel/events/core.c:10616: > + static int hw_context_taken = 0; > > ERROR: space required before the open brace '{' > #11070: FILE:

[PATCH] perf/core: Do not initialise statics to 0 and add space before '{'

2020-05-07 Thread Kaige Li
Fix the following checkpatch errors: ERROR: do not initialise statics to 0 #10616: FILE: ./kernel/events/core.c:10616: + static int hw_context_taken = 0; ERROR: space required before the open brace '{' #11070: FILE: ./kernel/events/core.c:11070: + } else if (is_write_backward(event)){