Re: [PATCH 04/12] workqueue: Protect lockdep functions with #ifdef

From: Namhyung Kim
Date: Tue Feb 08 2022 - 14:17:45 EST


On Tue, Feb 8, 2022 at 10:48 AM Tejun Heo <tj@xxxxxxxxxx> wrote:
>
> On Tue, Feb 08, 2022 at 10:42:00AM -0800, Namhyung Kim wrote:
> > With upcoming lock tracepoints config, it'd define some of lockdep
> > functions without enabling CONFIG_LOCKDEP actually. The existing code
> > assumes those functions will be removed by the preprocessor but it's
> > not the case anymore. Let's protect the code with #ifdef's explicitly.
> >
> > Cc: Tejun Heo <tj@xxxxxxxxxx>
> > Cc: Lai Jiangshan <jiangshanlai@xxxxxxxxx>
> > Signed-off-by: Namhyung Kim <namhyung@xxxxxxxxxx>
>
> Can you wrap them in inlines and add some comment?

Ok, will do.

Thanks,
Namhyung