diff options
| author | FUJITA Tomonori <[email protected]> | 2025-06-17 23:28:06 +0000 |
|---|---|---|
| committer | Andreas Hindborg <[email protected]> | 2025-06-30 10:39:13 +0000 |
| commit | fc38b7ff879683669bd9ff5dc7e7b6aeeb07bf2a (patch) | |
| tree | ab6e3b390d34cf4c01f33776b9ee39791cb44efe /rust/helpers/kunit.c | |
| parent | rust: time: Remove Ktime in hrtimer (diff) | |
| download | kernel-fc38b7ff879683669bd9ff5dc7e7b6aeeb07bf2a.tar.gz kernel-fc38b7ff879683669bd9ff5dc7e7b6aeeb07bf2a.zip | |
rust: time: Seal the HrTimerMode trait
Prevent downstream crates or drivers from implementing `HrTimerMode`
for arbitrary types, which could otherwise leads to unsupported
behavior.
Introduce a `private::Sealed` trait and implement it for all types
that implement `HrTimerMode`.
Signed-off-by: FUJITA Tomonori <[email protected]>
Reviewed-by: Boqun Feng <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Andreas Hindborg <[email protected]>
Diffstat (limited to 'rust/helpers/kunit.c')
0 files changed, 0 insertions, 0 deletions
