]> www.infradead.org Git - users/jedix/linux-maple.git/commit
rust: pci: impl Send + Sync for pci::Device
authorDanilo Krummrich <dakr@kernel.org>
Tue, 18 Mar 2025 21:29:21 +0000 (22:29 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 18 Mar 2025 23:55:12 +0000 (16:55 -0700)
commite2942bb4e62938fcef1481c9c1470b661087cdb7
tree0de2cc3f2df49f9d9b62179bb836cec62858e95c
parent4d320e30ee04c25c660eca2bb33e846ebb71a79a
rust: pci: impl Send + Sync for pci::Device

Commit 7b948a2af6b5 ("rust: pci: fix unrestricted &mut pci::Device")
changed the definition of pci::Device and discarded the implicitly
derived Send and Sync traits.

This isn't required by upstream code yet, and hence did not cause any
issues. However, it is relied on by upcoming drivers, hence add it back
in.

Signed-off-by: Danilo Krummrich <dakr@kernel.org>
Link: https://lore.kernel.org/r/20250318212940.137577-1-dakr@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
rust/kernel/pci.rs