diff options
author | 2024-11-18 21:29:33 +0100 | |
---|---|---|
committer | 2024-11-18 21:29:33 +0100 | |
commit | f33e46a0c6bddd341d0989484a2546bba7ac4a3c (patch) | |
tree | 4918985ab00890205c8d77d0553472e12e01cd55 /rust/helpers/workqueue.c | |
parent | HID: hyperv: streamline driver probe to avoid devres issues (diff) | |
parent | HID: wacom: Set eraser status when either 'Eraser' or 'Invert' usage is set (diff) | |
download | wireguard-linux-f33e46a0c6bddd341d0989484a2546bba7ac4a3c.tar.xz wireguard-linux-f33e46a0c6bddd341d0989484a2546bba7ac4a3c.zip |
Merge branch 'for-6.13/wacom' into for-linus
- Sanitization of BTN_TOOL_RUBBER handling (Jason Gerecke)
Diffstat (limited to '')
-rw-r--r-- | rust/helpers/workqueue.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/rust/helpers/workqueue.c b/rust/helpers/workqueue.c new file mode 100644 index 000000000000..f59427acc323 --- /dev/null +++ b/rust/helpers/workqueue.c @@ -0,0 +1,15 @@ +// SPDX-License-Identifier: GPL-2.0 + +#include <linux/export.h> +#include <linux/workqueue.h> + +void rust_helper_init_work_with_key(struct work_struct *work, work_func_t func, + bool onstack, const char *name, + struct lock_class_key *key) +{ + __init_work(work, onstack); + work->data = (atomic_long_t)WORK_DATA_INIT(); + lockdep_init_map(&work->lockdep_map, name, key, 0); + INIT_LIST_HEAD(&work->entry); + work->func = func; +} |