Danilo Krummrich 28bb48c4cb rust: dma: add Send implementation for CoherentAllocation
Stephen found a future build failure in linux-next [1]:

    error[E0277]: `*mut MyStruct` cannot be sent between threads safely
      --> samples/rust/rust_dma.rs:47:22
       |
    47 | impl pci::Driver for DmaSampleDriver {
       |                      ^^^^^^^^^^^^^^^ `*mut MyStruct` cannot be sent between threads safely

It is caused by the interaction between commit 935e1d90bf6f ("rust: pci:
require Send for Driver trait implementers") from the driver-core tree,
which fixes a missing concurrency requirement, and commit 9901addae63b
("samples: rust: add Rust dma test sample driver") which adds a sample
that does not satisfy that requirement.

Add a `Send` implementation to `CoherentAllocation`, which allows the
sample (and other future users) to satisfy it.

Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
Closes: https://lore.kernel.org/linux-next/20250324215702.1515ba92@canb.auug.org.au/ [1]
Signed-off-by: Danilo Krummrich <dakr@kernel.org>
Reviewed-by: Boqun Feng <boqun.feng@gmail.com>
Link: https://lore.kernel.org/r/20250324174048.1075597-1-ojeda@kernel.org
[ Added number to Closes. Fix typo spotted by Boqun. - Miguel ]
Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
2025-03-24 20:14:10 +01:00
..
2025-03-16 21:59:19 +01:00
2025-03-08 23:04:38 +01:00
2025-03-10 15:12:17 +01:00
2025-03-16 21:59:19 +01:00
2024-09-30 13:02:29 +02:00
2025-01-28 12:25:12 -08:00
2025-03-16 21:59:19 +01:00
2025-03-20 21:44:46 +01:00
2025-02-13 16:58:58 +01:00
2025-03-16 21:59:19 +01:00
2024-12-20 17:19:26 +01:00
2025-03-23 19:56:45 +01:00
2025-03-16 21:59:19 +01:00
2025-01-28 12:25:12 -08:00
2024-12-20 17:21:04 +01:00
2025-03-10 15:12:17 +01:00
2024-10-08 15:44:36 +02:00
2025-03-16 21:59:19 +01:00
2024-12-20 17:19:26 +01:00
2025-03-08 23:04:38 +01:00
2025-01-28 12:25:12 -08:00
2025-03-06 20:59:45 +01:00
2024-11-10 23:58:00 +01:00
2024-11-04 16:21:44 -05:00
2025-03-16 21:59:19 +01:00
2025-01-21 17:48:03 -08:00