]> Gentwo Git Trees - linux/.git/commit
fork: remove #ifdef CONFIG_LOCKDEP in copy_process()
authorTio Zhang <tiozhang@didiglobal.com>
Wed, 20 Aug 2025 10:18:46 +0000 (18:18 +0800)
committerAndrew Morton <akpm@linux-foundation.org>
Sun, 14 Sep 2025 00:32:48 +0000 (17:32 -0700)
commitb32730e68d326bef5c081c4b7cdd275c45b1902b
treec5f5f9b1d401f31e91a6835bd9a0e7d1bd848177
parent2a8c51bc9391ff3c701f06ae1b678419f843dc1a
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>
kernel/fork.c