summaryrefslogtreecommitdiff
path: root/rust/kernel/platform.rs
diff options
context:
space:
mode:
authorFUJITA Tomonori <fujita.tomonori@gmail.com>2025-06-18 08:28:06 +0900
committerAndreas Hindborg <a.hindborg@kernel.org>2025-06-30 12:39:13 +0200
commitfc38b7ff879683669bd9ff5dc7e7b6aeeb07bf2a (patch)
treeab6e3b390d34cf4c01f33776b9ee39791cb44efe /rust/kernel/platform.rs
parent69f66cf45814f45a161688fd087abe21e6d5afbd (diff)
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 <fujita.tomonori@gmail.com> Reviewed-by: Boqun Feng <boqun.feng@gmail.com> Link: https://lore.kernel.org/r/20250617232806.3950141-1-fujita.tomonori@gmail.com Signed-off-by: Andreas Hindborg <a.hindborg@kernel.org>
Diffstat (limited to 'rust/kernel/platform.rs')
0 files changed, 0 insertions, 0 deletions