diff options
| author | Alice Ryhl <aliceryhl@google.com> | 2026-01-05 12:42:19 +0000 |
|---|---|---|
| committer | Boqun Feng <boqun.feng@gmail.com> | 2026-01-09 19:01:41 +0800 |
| commit | 9f658bd5378d5c357d5eeb1e699f1504a7498dbf (patch) | |
| tree | d908c4020b4495cec029c40a404867a9224e5f69 /rust | |
| parent | 1c7a6f48f7eeb3014584d2fc55fc67f0cbaeef69 (diff) | |
| download | linux-9f658bd5378d5c357d5eeb1e699f1504a7498dbf.tar.gz linux-9f658bd5378d5c357d5eeb1e699f1504a7498dbf.zip | |
rust: cpu: Add __rust_helper to helpers
This is needed to inline these helpers into Rust code.
Reviewed-by: Boqun Feng <boqun.feng@gmail.com>
Reviewed-by: Gary Guo <gary@garyguo.net>
Signed-off-by: Alice Ryhl <aliceryhl@google.com>
Signed-off-by: Boqun Feng <boqun.feng@gmail.com>
Link: https://patch.msgid.link/20260105-define-rust-helper-v2-6-51da5f454a67@google.com
Diffstat (limited to 'rust')
| -rw-r--r-- | rust/helpers/cpu.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/rust/helpers/cpu.c b/rust/helpers/cpu.c index 824e0adb19d4..5759349b2c88 100644 --- a/rust/helpers/cpu.c +++ b/rust/helpers/cpu.c @@ -2,7 +2,7 @@ #include <linux/smp.h> -unsigned int rust_helper_raw_smp_processor_id(void) +__rust_helper unsigned int rust_helper_raw_smp_processor_id(void) { return raw_smp_processor_id(); } |
