Re: [PATCH] platform/chrome: cros_ec: Initialize panic notifier block

From: Chen-Yu Tsai
Date: Wed Jan 11 2023 - 23:48:09 EST


On Thu, Jan 12, 2023 at 12:39 PM Chen-Yu Tsai <wenst@xxxxxxxxxxxx> wrote:
>
> Commit d90fa2c64d59 ("platform/chrome: cros_ec: Poll EC log on EC panic")
> added a new notifier block, but failed to initialize it properly,
> resulting in a warning and stack trace (omitted):
>
> INFO: trying to register non-static key.
> The code is fine but needs lockdep annotation, or maybe
> you didn't initialize this object before use?
> turning off the locking correctness validator.
>
> Initialize the notifier block properly.
>
> Fixes: d90fa2c64d59 ("platform/chrome: cros_ec: Poll EC log on EC panic")
> Signed-off-by: Chen-Yu Tsai <wenst@xxxxxxxxxxxx>

Looks like someone beat me to it. Please ignore this one.