Re: [PATCH] tpm: eventlog: Declare mapping_size __maybe_unused

From: WangYuli
Date: Wed Mar 12 2025 - 02:37:35 EST


Hi Jarkko,

On 2025/3/12 14:20, Jarkko Sakkinen wrote:
Why do we care clang-19 with W=1e?

1. the kernel, being a software endeavor predicated on robustness, should not normally countenance build failures stemming from toolchain and compilation setups that are implicitly project-approved.

2. Besides, it's not as if GCC is immune to "unused-but-set-variable" warnings.  The thing is, I just happen to be using clang-19 for kernel builds.

Only one instance that demonstrates the issue please.

Thanks for the feedback, I'll be more mindful going forward.

--
WangYuli

Attachment: OpenPGP_0xC5DA1F3046F40BEE.asc
Description: OpenPGP public key

Attachment: OpenPGP_signature.asc
Description: OpenPGP digital signature