1
0
mirror of https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git synced 2026-01-12 01:20:14 +00:00
Igor Korotin de7cd3e4d6 rust: use absolute paths in macros referencing core and kernel
Macros and auto-generated code should use absolute paths, `::core::...`
and `::kernel::...`, for core and kernel references.

This prevents issues where user-defined modules named `core` or `kernel`
could be picked up instead of the `core` or `kernel` crates.

Thus clean some references up.

Suggested-by: Benno Lossin <benno.lossin@proton.me>
Closes: https://github.com/Rust-for-Linux/linux/issues/1150
Signed-off-by: Igor Korotin <igor.korotin.linux@gmail.com>
Reviewed-by: Benno Lossin <lossin@kernel.org>
Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Link: https://lore.kernel.org/r/20250519164615.3310844-1-igor.korotin.linux@gmail.com
[ Applied `rustfmt`. Reworded slightly. - Miguel ]
Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
2025-05-23 00:12:14 +02:00
..
2025-03-30 17:03:26 -07:00
2025-05-18 20:36:56 +02:00
2025-03-16 21:59:19 +01:00
2025-03-30 17:03:26 -07:00
2025-03-30 17:03:26 -07:00
2025-05-18 20:36:56 +02:00
2025-03-16 21:59:19 +01:00
2025-03-30 17:03:26 -07:00
2025-03-30 17:03:26 -07:00
2025-03-30 17:03:26 -07:00
2025-04-29 15:31:07 +02:00
2025-05-18 20:56:03 +02:00
2025-03-24 20:55:03 -07:00