diff options
author | David Gow <davidgow@google.com> | 2023-02-14 23:47:35 +0100 |
---|---|---|
committer | Miguel Ojeda <ojeda@kernel.org> | 2023-04-06 23:11:04 +0200 |
commit | c682e4c37d2b8ba3bde1125cbbea4ee88824b4e2 (patch) | |
tree | 8b5f155eb8e34da3486cb884726a2ea39be05f46 /scripts/generate_rust_analyzer.py | |
parent | rust: sort uml documentation arch support table (diff) | |
download | linux-c682e4c37d2b8ba3bde1125cbbea4ee88824b4e2.tar.xz linux-c682e4c37d2b8ba3bde1125cbbea4ee88824b4e2.zip |
rust: kernel: Mark rust_fmt_argument as extern "C"
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: 247b365dc8dc ("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>
Diffstat (limited to 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions