linux-stable/rust
David Gow 2aac424cb2 rust: kernel: Mark rust_fmt_argument as extern "C"
commit c682e4c37d upstream.

The rust_fmt_argument function is called from printk() to handle the %pA
format specifier.

Since it's called from C, we should mark it extern "C" to make sure it's
ABI compatible.

Cc: stable@vger.kernel.org
Fixes: 247b365dc8 ("rust: add `kernel` crate")
Signed-off-by: David Gow <davidgow@google.com>
Reviewed-by: Gary Guo <gary@garyguo.net>
Reviewed-by: Björn Roy Baron <bjorn3_gh@protonmail.com>
Reviewed-by: Vincenzo Palazzo <vincenzopalazzodev@gmail.com>
[Applied `rustfmt`]
Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2023-04-26 14:30:02 +02:00
..
alloc rust: alloc: add `Vec::try_with_capacity{,_in}()` constructors 2022-12-04 01:59:15 +01:00
bindings rust: add `bindings` crate 2022-09-28 08:58:00 +02:00
kernel rust: kernel: Mark rust_fmt_argument as extern "C" 2023-04-26 14:30:02 +02:00
macros rust: macros: take string literals in `module!` 2022-12-04 01:59:15 +01:00
.gitignore Kbuild: add Rust support 2022-09-28 09:02:20 +02:00
Makefile rust: add `build_error` crate 2022-12-04 01:59:16 +01:00
bindgen_parameters Kbuild: add Rust support 2022-09-28 09:02:20 +02:00
build_error.rs rust: add `build_error` crate 2022-12-04 01:59:16 +01:00
compiler_builtins.rs rust: add `compiler_builtins` crate 2022-09-28 08:58:00 +02:00
exports.c rust: add `build_error` crate 2022-12-04 01:59:16 +01:00
helpers.c