Skip to content

remove TryFrom<&Device> implementations for pci and platform

Nicolás Antinori lkml rust-for-linux 2 versions – Applied

Status from this message: Applied, thanks!

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest2 patches 1 replyApplied
  2. v12 patches 1 replySuperseded

Changes in v2 from the cover letter

- Replaced "Closes:" tags with "Link:" tag in both patches.
- Added mention to the soundness problem in the commit messages.
- Removed bindings::dev_is_platform C binding since it has no other
usages.
- Solved Sashiko from v1: "[Low] rust: pci: unused
rust_helper_dev_is_pci() left in rust/helpers/pci.c": Deleted the
binding. Platform was in the same situation as mentioned in the
previous item.
Link to v1: https://lore.kernel.org/rust-for-linux/[email protected]/T/#t

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/2rust: pci: remove TryFrom<&Device> implementation for &pci::Devicerust/helpers/pci.c rust/kernel/pci.rs+0 -260 replies
2/2rust: platform: remove TryFrom<&Device> implementation for &platform::Devicerust/helpers/helpers.c rust/helpers/platform.c rust/kernel/platform.rs+0 -300 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH v2 0/2] remove TryFrom<&Device> implementations for pci and platform

Hello,

This patch series removes TryFrom<&Device<Ctx>> implementations for pci and platform's Device struct.

I made this a series because both TryFrom implementations were introduced in a series:
https://lore.kernel.org/all/[email protected]/

Changelog:
v2:
- Replaced "Closes:" tags with "Link:" tag in both patches.
- Added mention to the soundness problem in the commit messages.
- Removed bindings::dev_is_platform C binding since it has no other
usages.
- Solved Sashiko from v1: "[Low] rust: pci: unused
rust_helper_dev_is_pci() left in rust/helpers/pci.c": Deleted the
binding. Platform was in the same situation as mentioned in the
previous item.
Link to v1: https://lore.kernel.org/rust-for-linux/[email protected]/T/#t

Best regards,
Nicolás

Nicolás Antinori (2):
rust: pci: remove TryFrom<&Device> implementation for &pci::Device
rust: platform: remove TryFrom<&Device> implementation for
&platform::Device

 rust/helpers/helpers.c  |  1 -
 rust/helpers/pci.c      |  5 -----
 rust/helpers/platform.c |  8 --------
 rust/kernel/pci.rs      | 21 ---------------------
 rust/kernel/platform.rs | 21 ---------------------
 5 files changed, 56 deletions(-)
 delete mode 100644 rust/helpers/platform.c

--
2.47.3