]> git.ipfire.org Git - thirdparty/linux.git/commit
kcov: Use scoped init guard
authorMarco Elver <elver@google.com>
Mon, 19 Jan 2026 09:05:53 +0000 (10:05 +0100)
committerPeter Zijlstra <peterz@infradead.org>
Wed, 28 Jan 2026 19:45:24 +0000 (20:45 +0100)
commitb7be9442a3758a27a4b09b75ad79f3626b16ec3d
treea3a5242d008a9b86c75a9816e5ae6efac2a44e6a
parentd084a73714f818ce509022e1aa9483cabf797c16
kcov: Use scoped init guard

Convert lock initialization to scoped guarded initialization where
lock-guarded members are initialized in the same scope.

This ensures the context analysis treats the context as active during
member initialization. This is required to avoid errors once implicit
context assertion is removed.

Signed-off-by: Marco Elver <elver@google.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://patch.msgid.link/20260119094029.1344361-4-elver@google.com
kernel/kcov.c