diff options
| author | Sang-Heon Jeon <ekffu200098@gmail.com> | 2026-06-21 19:59:07 +0900 |
|---|---|---|
| committer | Andreas Hindborg <a.hindborg@kernel.org> | 2026-09-22 16:01:23 +0200 |
| commit | 125a931f9d7f0fd93037f1c8c8154ab5b19678c8 (patch) | |
| tree | 0f7ef6f42cd399176fae93871bc59b3c96f2b00c /tools/lib/python/kdoc/python_version.py | |
| parent | df2908090cda368b01ff43709f51890076c56157 (diff) | |
| download | linux-next-125a931f9d7f0fd93037f1c8c8154ab5b19678c8.tar.gz linux-next-125a931f9d7f0fd93037f1c8c8154ab5b19678c8.zip | |
rust: time: warn and assert out-of-range input in fsleep() and udelay()
fsleep() documents out-of-range input as a bug but does not check
it, unlike udelay(). Add `debug_assert!` calls to catch it in
debug builds.
Also add `pr_warn_once!` calls in both fsleep() and udelay() so
the clamped path is observable at runtime.
Reviewed-by: Onur Özkan <work@onurozkan.dev>
Reviewed-by: Andreas Hindborg <a.hindborg@kernel.org>
Signed-off-by: Sang-Heon Jeon <ekffu200098@gmail.com>
Link: https://msgid.link/20260621105909.4055210-1-ekffu200098@gmail.com
Signed-off-by: Andreas Hindborg <a.hindborg@kernel.org>
Diffstat (limited to 'tools/lib/python/kdoc/python_version.py')
0 files changed, 0 insertions, 0 deletions
