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

From: Peter Zijlstra
Date: Fri May 08 2020 - 04:25:40 EST


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: ./kernel/events/core.c:11070:
> + } else if (is_write_backward(event)){

Checkpatch can sod off. Please don't ever submit pure checkpatch patches
to anything I maintain.