Re: [PATCH] rust: kernel: Mark rust_fmt_argument as extern "C"

From: Miguel Ojeda
Date: Wed Feb 15 2023 - 14:18:03 EST


On Tue, Feb 14, 2023 at 11:47 PM David Gow <davidgow@xxxxxxxxxx> wrote:
>
> 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@xxxxxxxxxxxxxxx
> Fixes: 247b365dc8dc ("rust: add `kernel` crate")
> Signed-off-by: David Gow <davidgow@xxxxxxxxxx>

Thanks David -- I will apply `rustfmt` on my side.

Cheers,
Miguel