Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

rust: binder: add __rust_helper to helpers

This is needed to inline these helpers into Rust code.

Signed-off-by: Alice Ryhl <aliceryhl@google.com>
Link: https://patch.msgid.link/20251202-define-rust-helper-v1-3-a2e13cbc17a6@google.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Alice Ryhl and committed by
Greg Kroah-Hartman
0c4ce296 953deba7

+7 -6
+7 -6
rust/helpers/binder.c
··· 7 7 #include <linux/list_lru.h> 8 8 #include <linux/task_work.h> 9 9 10 - unsigned long rust_helper_list_lru_count(struct list_lru *lru) 10 + __rust_helper unsigned long rust_helper_list_lru_count(struct list_lru *lru) 11 11 { 12 12 return list_lru_count(lru); 13 13 } 14 14 15 - unsigned long rust_helper_list_lru_walk(struct list_lru *lru, 16 - list_lru_walk_cb isolate, void *cb_arg, 17 - unsigned long nr_to_walk) 15 + __rust_helper unsigned long rust_helper_list_lru_walk(struct list_lru *lru, 16 + list_lru_walk_cb isolate, 17 + void *cb_arg, 18 + unsigned long nr_to_walk) 18 19 { 19 20 return list_lru_walk(lru, isolate, cb_arg, nr_to_walk); 20 21 } 21 22 22 - void rust_helper_init_task_work(struct callback_head *twork, 23 - task_work_func_t func) 23 + __rust_helper void rust_helper_init_task_work(struct callback_head *twork, 24 + task_work_func_t func) 24 25 { 25 26 init_task_work(twork, func); 26 27 }