]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
rust: use the `build_error!` macro, not the hidden function
authorMiguel Ojeda <ojeda@kernel.org>
Sat, 23 Nov 2024 22:28:47 +0000 (23:28 +0100)
committerMiguel Ojeda <ojeda@kernel.org>
Thu, 9 Jan 2025 23:19:05 +0000 (00:19 +0100)
commit15f2f9313a394f97fb9443271721e9ff1c8d4be4
tree0ce3d955f08d166605464c286cb2e8be05692ebc
parent2a87f8b075ea0ba33d3809aee7980c019f920bd6
rust: use the `build_error!` macro, not the hidden function

Code and some examples were using the function, rather than the macro. The
macro is what is documented.

Thus move users to the macro.

Reviewed-by: Alice Ryhl <aliceryhl@google.com>
Link: https://lore.kernel.org/r/20241123222849.350287-1-ojeda@kernel.org
[ Applied the change to the new miscdevice cases. - Miguel ]
Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
rust/kernel/block/mq/operations.rs
rust/kernel/miscdevice.rs
rust/kernel/net/phy.rs
rust/macros/lib.rs