]> www.infradead.org Git - users/jedix/linux-maple.git/commit
print: use new #[export] macro for rust_fmt_argument
authorAlice Ryhl <aliceryhl@google.com>
Mon, 3 Mar 2025 08:45:15 +0000 (08:45 +0000)
committerMiguel Ojeda <ojeda@kernel.org>
Sun, 9 Mar 2025 19:52:46 +0000 (20:52 +0100)
commit92d2873bedf33974b04530215692705185ec6572
treeda619cc1cc1ee67078f06aea262d2e00a57a5219
parent44e333fe464a253f703982f721c7155218f63d1f
print: use new #[export] macro for rust_fmt_argument

This moves the rust_fmt_argument function over to use the new #[export]
macro, which will verify at compile-time that the function signature
matches what is in the header file.

Reviewed-by: Andreas Hindborg <a.hindborg@kernel.org>
Reviewed-by: Tamir Duberstein <tamird@gmail.com>
Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Alice Ryhl <aliceryhl@google.com>
Acked-by: Petr Mladek <pmladek@suse.com>
Link: https://lore.kernel.org/r/20250303-export-macro-v3-4-41fbad85a27f@google.com
[ Removed period as requested by Andy. - Miguel ]
Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
include/linux/sprintf.h
lib/vsprintf.c
rust/kernel/print.rs