diff options
| author | Mitchell Levy <[email protected]> | 2025-03-07 23:27:01 +0000 |
|---|---|---|
| committer | Ingo Molnar <[email protected]> | 2025-03-07 23:55:04 +0000 |
| commit | f73ca66f0d7f4371d172d6f5b1f9a00e367ba921 (patch) | |
| tree | f61b0e29525c92a198a8c0ab3389437e000f5b82 /rust/helpers/helpers.c | |
| parent | rust: sync: condvar: Add wait_interruptible_freezable() (diff) | |
| download | kernel-f73ca66f0d7f4371d172d6f5b1f9a00e367ba921.tar.gz kernel-f73ca66f0d7f4371d172d6f5b1f9a00e367ba921.zip | |
rust: lockdep: Use Pin for all LockClassKey usages
Reintroduce dynamically-allocated LockClassKeys such that they are
automatically (de)registered. Require that all usages of LockClassKeys
ensure that they are Pin'd.
Currently, only `'static` LockClassKeys are supported, so Pin is
redundant. However, it is intended that dynamically-allocated
LockClassKeys will eventually be supported, so using Pin from the outset
will make that change simpler.
Closes: https://github.com/Rust-for-Linux/linux/issues/1102
Suggested-by: Benno Lossin <[email protected]>
Suggested-by: Boqun Feng <[email protected]>
Signed-off-by: Mitchell Levy <[email protected]>
Signed-off-by: Boqun Feng <[email protected]>
Signed-off-by: Ingo Molnar <[email protected]>
Reviewed-by: Benno Lossin <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'rust/helpers/helpers.c')
| -rw-r--r-- | rust/helpers/helpers.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/rust/helpers/helpers.c b/rust/helpers/helpers.c index 0640b7e115be..4c1a10a419cf 100644 --- a/rust/helpers/helpers.c +++ b/rust/helpers/helpers.c @@ -30,6 +30,7 @@ #include "signal.c" #include "slab.c" #include "spinlock.c" +#include "sync.c" #include "task.c" #include "uaccess.c" #include "vmalloc.c" |
