[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CAH5fLgiYy-9DfjL+0NoYzwD=8tTSBrFMhJveZktRncJE9czkrA@mail.gmail.com>
Date: Fri, 22 Aug 2025 09:44:36 +0200
From: Alice Ryhl <aliceryhl@...gle.com>
To: Alistair Popple <apopple@...dia.com>
Cc: rust-for-linux@...r.kernel.org, Bjorn Helgaas <bhelgaas@...gle.com>,
Krzysztof Wilczyński <kwilczynski@...nel.org>,
John Hubbard <jhubbard@...dia.com>, Alexandre Courbot <acourbot@...dia.com>, linux-pci@...r.kernel.org,
linux-kernel@...r.kernel.org, Danilo Krummrich <dakr@...nel.org>
Subject: Re: [PATCH] rust: Update PCI resource_start()/len() to return ResourceSize
On Fri, Aug 22, 2025 at 6:13 AM Alistair Popple <apopple@...dia.com> wrote:
>
> It's nicer to return native Rust types rather than the FFI bindings to a
> type so update the PCI resource bindings to return ResourceSize.
>
> Signed-off-by: Alistair Popple <apopple@...dia.com>
> Suggested-by: Danilo Krummrich <dakr@...nel.org>
Reviewed-by: Alice Ryhl <aliceryhl@...gle.com>
> rust/kernel/pci.rs | 6 +++---
> 1 file changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/rust/kernel/pci.rs b/rust/kernel/pci.rs
> index cae4e274f7766..ef949ff10a10a 100644
> --- a/rust/kernel/pci.rs
> +++ b/rust/kernel/pci.rs
> @@ -10,7 +10,7 @@
> devres::Devres,
> driver,
> error::{from_result, to_result, Result},
> - io::{Io, IoRaw},
> + io::{resource::ResourceSize, Io, IoRaw},
Maybe we want ResourceSize re-exported from kernel::io to make this simpler?
Alice
Powered by blists - more mailing lists