]> git.hungrycats.org Git - linux/commit
rust: tests: drop 'use crate' in bitmap and atomic KUnit tests
authorYury Norov <ynorov@nvidia.com>
Fri, 17 Apr 2026 03:15:27 +0000 (23:15 -0400)
committerMiguel Ojeda <ojeda@kernel.org>
Mon, 8 Jun 2026 00:30:33 +0000 (02:30 +0200)
commit90b67443f04a6dde73111fbcf5ae5cb91cf3e14b
tree5656d7942f4016623f03819047f00c04bde406c6
parent838a0871cb3cf5988560d17afaaf57592bdb486b
rust: tests: drop 'use crate' in bitmap and atomic KUnit tests

The following patch makes usage of macros::kunit_tests crate conditional
on the corresponding configs. When the configs are disabled, compiler
warns on unused crate. So, embed it in unit test declaration.

Signed-off-by: Yury Norov <ynorov@nvidia.com>
Reviewed-by: David Gow <david@davidgow.net>
Acked-by: Gary Guo <gary@garyguo.net>
Link: https://patch.msgid.link/20260417031531.315281-2-ynorov@nvidia.com
Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
rust/kernel/bitmap.rs
rust/kernel/sync/atomic/predefine.rs