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

Re: [PATCH 03/12] timer: Protect lockdep functions with #ifdef

From: Steven Rostedt <rostedt@goodmis.org>
Date: 2022-02-08 19:36:50

On Tue,  8 Feb 2022 10:41:59 -0800
Namhyung Kim [off-list ref] 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.
I wonder if it would be cleaner to have another macro name for these
locations to keep out the ugly #ifdef in the code.

lockdep_init_map_raw() ?

-- Steve

Cc: Thomas Gleixner <redacted>
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
---
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help