Thread (53 messages) 53 messages, 9 authors, 2022-02-11

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

From: Tejun Heo <tj@kernel.org>
Date: 2022-02-08 18:48:18

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@kernel.org>
Cc: Lai Jiangshan <jiangshanlai@gmail.com>
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Can you wrap them in inlines and add some comment?

Thanks.

-- 
tejun
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help