aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/platform/x86/intel/pmt/class.c
diff options
context:
space:
mode:
authorKees Cook <[email protected]>2025-06-28 23:40:38 +0000
committerKees Cook <[email protected]>2025-07-15 05:43:52 +0000
commit10299c07c94aa0997fa43523b53301e713a6415d (patch)
treec24b8562aee584577c128f59c2aa37f0114c40c9 /drivers/platform/x86/intel/pmt/class.c
parentacpi: nfit: intel: avoid multiple -Wflex-array-member-not-at-end warnings (diff)
downloadkernel-10299c07c94aa0997fa43523b53301e713a6415d.tar.gz
kernel-10299c07c94aa0997fa43523b53301e713a6415d.zip
kunit/fortify: Add back "volatile" for sizeof() constants
It seems the Clang can see through OPTIMIZER_HIDE_VAR when the constant is coming from sizeof. Adding "volatile" back to these variables solves this false positive without reintroducing the issues that originally led to switching to OPTIMIZER_HIDE_VAR in the first place[1]. Reported-by: Nathan Chancellor <[email protected]> Closes: https://github.com/ClangBuiltLinux/linux/issues/2075 [1] Cc: Jannik Glückert <[email protected]> Suggested-by: Nathan Chancellor <[email protected]> Fixes: 6ee149f61bcc ("kunit/fortify: Replace "volatile" with OPTIMIZER_HIDE_VAR()") Reviewed-by: Nathan Chancellor <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Kees Cook <[email protected]>
Diffstat (limited to 'drivers/platform/x86/intel/pmt/class.c')
0 files changed, 0 insertions, 0 deletions