summaryrefslogtreecommitdiff
path: root/scripts/Makefile.thinlto
diff options
context:
space:
mode:
authorAlice Ryhl <aliceryhl@google.com>2026-10-20 08:28:37 +0000
committerJason Gunthorpe <jgg@nvidia.com>2026-10-21 13:59:47 -0300
commitbc6f2a284c63313e789d8cd294531e1cc2dc8c99 (patch)
treed142cb36df50715e1ac115f2b23b3dc32af878ed /scripts/Makefile.thinlto
parentc03c1a14507dfaf8b856c2608f9ac216021fc222 (diff)
downloadlwn-bc6f2a284c63313e789d8cd294531e1cc2dc8c99.tar.gz
lwn-bc6f2a284c63313e789d8cd294531e1cc2dc8c99.zip
rust: fwctl: declare cfi_encoding for fwctl_rpc_scope
Currently, VTable::fw_rpc_callback() takes scope as a u32, whereas C calls fwctl_ops::fw_rpc with enum fwctl_rpc_scope. With kCFI enabled, enum types are encoded distinctly from integers, causing every fw_rpc indirect call into a Rust fwctl driver to trip a CFI failure. Thus, generate fwctl_rpc_scope as a newtype with a cfi_encoding attribute and use it in fw_rpc_callback(). Link: https://patch.msgid.link/r/20261020-fwctl-cfi-encoding-v1-1-ebb30d1500df@google.com Cc: stable@vger.kernel.org Fixes: e052daab94ee ("rust: introduce abstractions for fwctl") Signed-off-by: Alice Ryhl <aliceryhl@google.com> Reviewed-by: Zhi Wang <zhiw@nvidia.com> Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions