diff options
| author | Arnd Bergmann <[email protected]> | 2025-03-10 13:10:59 +0000 |
|---|---|---|
| committer | Ingo Molnar <[email protected]> | 2025-03-10 19:06:47 +0000 |
| commit | ec73859d76db768da97ee799a91eb9c7d28974fe (patch) | |
| tree | a7d95bbd58f53eafa902bdcc2ea59384571bb2f5 /samples/rust/rust_driver_platform.rs | |
| parent | x86/delay: Fix inconsistent whitespace (diff) | |
| download | kernel-ec73859d76db768da97ee799a91eb9c7d28974fe.tar.gz kernel-ec73859d76db768da97ee799a91eb9c7d28974fe.zip | |
x86/coco: Replace 'static const cc_mask' with the newly introduced cc_get_mask() function
When extra warnings are enabled, the cc_mask definition in <asm/coco.h>
causes a build failure with GCC:
arch/x86/include/asm/coco.h:28:18: error: 'cc_mask' defined but not used [-Werror=unused-const-variable=]
28 | static const u64 cc_mask = 0;
Add a cc_get_mask() function mirroring cc_set_mask() for the one
user of the variable outside of the CoCo implementation.
Fixes: a0a8d15a798b ("x86/tdx: Preserve shared bit on mprotect()")
Signed-off-by: Arnd Bergmann <[email protected]>
Signed-off-by: Ingo Molnar <[email protected]>
Cc: Linus Torvalds <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
--
v2: use an inline helper instead of a __maybe_unused annotaiton.
Diffstat (limited to 'samples/rust/rust_driver_platform.rs')
0 files changed, 0 insertions, 0 deletions
