linux-stable/rust
Matthew Maurer 087b50f60d rust: Ignore preserve-most functions
commit bad098d768 upstream.

Neither bindgen nor Rust know about the preserve-most calling
convention, and Clang describes it as unstable. Since we aren't using
functions with this calling convention from Rust, blocklist them.

These functions are only added to the build when list hardening is
enabled, which is likely why others didn't notice this yet.

Signed-off-by: Matthew Maurer <mmaurer@google.com>
Reviewed-by: Martin Rodriguez Reboredo <yakoyoku@gmail.com>
Reviewed-by: Alice Ryhl <aliceryhl@google.com>
Link: https://lore.kernel.org/r/20231031201945.1412345-1-mmaurer@google.com
[ Used Markdown for consistency with the other comments in the file. ]
Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2024-01-25 15:45:09 -08:00
..
alloc rust: upgrade to Rust 1.73.0 2023-10-15 21:25:08 +02:00
bindings rust: workqueue: add low-level workqueue bindings 2023-09-25 09:46:42 -10:00
kernel workqueue: Add rust bindings for v6.7 2023-10-30 20:35:48 -10:00
macros Rust changes for v6.6 2023-08-29 08:19:46 -07:00
uapi rust: upgrade to Rust 1.68.2 2023-05-31 17:35:03 +02:00
.gitignore rust: support running Rust documentation tests as KUnit ones 2023-07-19 09:32:53 -06:00
Makefile Kbuild updates for v6.7 2023-11-04 08:07:19 -10:00
bindgen_parameters rust: Ignore preserve-most functions 2024-01-25 15:45:09 -08:00
build_error.rs rust: add `build_error` crate 2022-12-04 01:59:16 +01:00
compiler_builtins.rs rust: upgrade to Rust 1.73.0 2023-10-15 21:25:08 +02:00
exports.c rust: add `build_error` crate 2022-12-04 01:59:16 +01:00
helpers.c rust: workqueue: add helper for defining work_struct fields 2023-09-25 09:46:42 -10:00