Rust for Linux List
 help / color / mirror / Atom feed
* [PATCH v2 0/2] remove TryFrom<&Device> implementations for pci and platform
@ 2026-11-04 19:50 Nicolás Antinori
  2026-11-04 19:50 ` [PATCH v2 1/2] rust: pci: remove TryFrom<&Device> implementation for &pci::Device Nicolás Antinori
  2026-11-04 19:50 ` [PATCH v2 2/2] rust: platform: remove TryFrom<&Device> implementation for &platform::Device Nicolás Antinori
  0 siblings, 2 replies; 3+ messages in thread
From: Nicolás Antinori @ 2026-11-04 19:50 UTC (permalink / raw)
  To: Igor Korotin, Danilo Krummrich, Georgios Androutsopoulos
  Cc: Nicolás Antinori, Alexandre Courbot, Alice Ryhl,
	Andreas Hindborg, Benno Lossin, Björn Roy Baron, Boqun Feng,
	Daniel Almeida, Gary Guo, Miguel Ojeda, Onur Özkan,
	Tamir Duberstein, Trevor Gross, linux-kernel, rust-for-linux

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/20250321214826.140946-1-dakr@kernel.org/

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/cover.1792417858.git.nico.antinori.7@gmail.com/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


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2026-11-04 19:53 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-04 19:50 [PATCH v2 0/2] remove TryFrom<&Device> implementations for pci and platform Nicolás Antinori
2026-11-04 19:50 ` [PATCH v2 1/2] rust: pci: remove TryFrom<&Device> implementation for &pci::Device Nicolás Antinori
2026-11-04 19:50 ` [PATCH v2 2/2] rust: platform: remove TryFrom<&Device> implementation for &platform::Device Nicolás Antinori

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox