]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
rust: cpufreq: add __rust_helper to helpers
authorAlice Ryhl <aliceryhl@google.com>
Tue, 2 Dec 2025 19:37:35 +0000 (19:37 +0000)
committerViresh Kumar <viresh.kumar@linaro.org>
Tue, 27 Jan 2026 05:51:22 +0000 (11:21 +0530)
This is needed to inline these helpers into Rust code.

Signed-off-by: Alice Ryhl <aliceryhl@google.com>
Reviewed-by: Boqun Feng <boqun.feng@gmail.com>
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
rust/helpers/cpufreq.c

index 7c1343c4d65eaff6f62255b6c9a9a67f89af1541..0e16aeef2b5a696bf8974f37d9e5e3c24d999f40 100644 (file)
@@ -3,7 +3,8 @@
 #include <linux/cpufreq.h>
 
 #ifdef CONFIG_CPU_FREQ
-void rust_helper_cpufreq_register_em_with_opp(struct cpufreq_policy *policy)
+__rust_helper void
+rust_helper_cpufreq_register_em_with_opp(struct cpufreq_policy *policy)
 {
        cpufreq_register_em_with_opp(policy);
 }