Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

fork: remove #ifdef CONFIG_LOCKDEP in copy_process()

lockdep_init_task() is defined as an empty when CONFIG_LOCKDEP is not set.
So the #ifdef here is redundant, remove it.

Link: https://lkml.kernel.org/r/20250820101826.GA2484@didi-ThinkCentre-M930t-N000
Signed-off-by: Tio Zhang <tiozhang@didiglobal.com>
Cc: Kees Cook <kees@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>

authored by

Tio Zhang and committed by
Andrew Morton
b32730e6 2a8c51bc

-2
-2
kernel/fork.c
··· 2124 2124 2125 2125 p->pagefault_disabled = 0; 2126 2126 2127 - #ifdef CONFIG_LOCKDEP 2128 2127 lockdep_init_task(p); 2129 - #endif 2130 2128 2131 2129 p->blocked_on = NULL; /* not blocked yet */ 2132 2130