]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
lib: split codetag_lock_module_list()
authorBart Van Assche <bvanassche@acm.org>
Tue, 24 Mar 2026 21:42:25 +0000 (14:42 -0700)
committerAndrew Morton <akpm@linux-foundation.org>
Sun, 21 Jun 2026 18:31:28 +0000 (11:31 -0700)
commit67c2696cf76aa276376fdd845c7d1b3e16b97af2
tree34ce3097b3ba5d0b367a033aeab8aa45fe4da738
parent2956268efc457cb05d29c1bf94de1e8e684d7bbc
lib: split codetag_lock_module_list()

Letting a function argument indicate whether a lock or unlock operation
should be performed is incompatible with compile-time analysis of locking
operations by sparse and Clang.  Hence, split codetag_lock_module_list()
into two functions: a function that locks cttype->mod_lock and another
function that unlocks cttype->mod_lock.  No functionality has been
changed.  See also commit 916cc5167cc6 ("lib: code tagging framework").

Link: https://lore.kernel.org/20260324214226.3684605-1-bvanassche@acm.org
Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Acked-by: Suren Baghdasaryan <surenb@google.com>
Cc: Kent Overstreet <kent.overstreet@linux.dev>
Cc: Nathan Chancellor <nathan@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
include/linux/codetag.h
lib/alloc_tag.c
lib/codetag.c