linux-stable/rust/kernel
David Gow 55fba69fbf 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:28:38 +02:00
..
allocator.rs
error.rs
lib.rs
prelude.rs
print.rs rust: kernel: Mark rust_fmt_argument as extern "C" 2023-04-26 14:28:38 +02:00
str.rs rust: str: fix requierments->requirements typo 2023-04-26 14:28:32 +02:00