]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
rust: sync: atomic: Implement Debug for Atomic<Debug>
authorBoqun Feng <boqun.feng@gmail.com>
Wed, 22 Oct 2025 03:53:23 +0000 (23:53 -0400)
committerBoqun Feng <boqun.feng@gmail.com>
Wed, 12 Nov 2025 16:56:41 +0000 (08:56 -0800)
commit013f912eb5fa7c06b3648ca630acfc4ff26456fa
tree3a8dcfa278e40c1d1243c3237ca6628687b31f0d
parent14e9a18b07ec463a85094cc8942788336164319f
rust: sync: atomic: Implement Debug for Atomic<Debug>

If `Atomic<T>` is `Debug` then it's a `debugfs::Writer`, therefore make
it so since 1) debugfs needs to support `Atomic<T>` and 2) it's rather
trivial to implement `Debug` for `Atomic<Debug>`.

Tested-by: David Gow <davidgow@google.com>
Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Boqun Feng <boqun.feng@gmail.com>
Link: https://patch.msgid.link/20251022035324.70785-3-boqun.feng@gmail.com
rust/kernel/sync/atomic.rs