]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
cleanup, tags: Create tags for the cleanup primitives
authorPeter Zijlstra <peterz@infradead.org>
Mon, 6 Jan 2025 10:26:48 +0000 (11:26 +0100)
committerPeter Zijlstra <peterz@infradead.org>
Fri, 10 Jan 2025 17:16:48 +0000 (18:16 +0100)
commita937f384c9da493e526ad896ef4e8054526d2941
treec305d4ea2c2d7e4579803fdd3d59bedc294b5f3f
parent630a9370164c231e9e81ec66256fc3351266dcac
cleanup, tags: Create tags for the cleanup primitives

Oleg reported that it is hard to find the definition of things like:
__free(argv) without having to do 'git grep "DEFINE_FREE(argv,"'.

Add tag generation for the various macros in cleanup.h.

Notably 'DEFINE_FREE(argv, ...)' will now generate a 'cleanup_argv'
tag, while all the others, eg. 'DEFINE_GUARD(mutex, ...)' will
generate 'class_mutex' like tags.

Reported-by: Oleg Nesterov <oleg@redhat.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://lkml.kernel.org/r/20250106102647.GB20870@noisy.programming.kicks-ass.net
scripts/tags.sh