tools/objtool: Copy the __cleanup unused variable fix for older clang
authorBorislav Petkov (AMD) <bp@alien8.de>
Sat, 1 Nov 2025 12:37:51 +0000 (13:37 +0100)
committerBorislav Petkov (AMD) <bp@alien8.de>
Mon, 10 Nov 2025 11:46:08 +0000 (12:46 +0100)
commit249092174caa3fe9fb8f7914991a8c0de484bcf8
treed3df2aa0f3bd2a20284bc1f2a9a03abe5f35d80d
parent6568f14cb5ae68cd6c612604ca0c89301cf3a0d0
tools/objtool: Copy the __cleanup unused variable fix for older clang

Copy from

  54da6a092431 ("locking: Introduce __cleanup() based infrastructure")

the bits which mark the variable with a cleanup attribute unused so that my
clang 15 can dispose of it properly instead of warning that it is unused which
then fails the build due to -Werror.

Suggested-by: Nathan Chancellor <nathan@kernel.org>
Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de>
Reviewed-by: Nathan Chancellor <nathan@kernel.org>
Link: https://lore.kernel.org/r/20251031114919.GBaQSiPxZrziOs3RCW@fat_crate.local
tools/objtool/include/objtool/warn.h