From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-10631.protonmail.ch (mail-10631.protonmail.ch [79.135.106.31]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A82E914F9FB for ; Sun, 6 Jul 2025 04:00:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=79.135.106.31 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751774449; cv=none; b=Vwwqk0xkIG1NBdm3SlAWnq0S8r/5RS3U/I41go8ISD9eJNKbweKtbdVCRLNEhG7U5kKLNbL2IOaLN2uWUh2rp3uBv30J004wX0jURCuB73nBJ/y1hDQTEFDPhrw33cXBHtd67siy/IB+bgbKojAexHGQaoH6n9thq4F/St+BsPk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751774449; c=relaxed/simple; bh=rI/kI0oAHIyuWvj9cLhxLiqFjgAQNmnf7gDVSGfxKsI=; h=Date:To:From:Cc:Subject:Message-ID:MIME-Version:Content-Type; b=NrLDj9VyxlA9VF/GxP/fMoACvz+dfoT0MOUTBUxBwpETNESFmAOdZFxCXAM7i3NqlaQoREQ1RUYNjEJkSbB39vEW2PmA6504TeTJPDSDHSmlD5PaDsE+boJSEMc9RTh9uBal74Ii9l/ITrg4cgGF4OQFLW/nmKSuFFO2cfAcoQU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=protonmail.com; spf=pass smtp.mailfrom=protonmail.com; dkim=pass (2048-bit key) header.d=protonmail.com header.i=@protonmail.com header.b=r6Dmio5j; arc=none smtp.client-ip=79.135.106.31 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=protonmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=protonmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=protonmail.com header.i=@protonmail.com header.b="r6Dmio5j" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail3; t=1751774439; x=1752033639; bh=gpd/usl0o6RHpKBvVUocgfEZk9/4I4i5Mm7Q5TNKVm0=; h=Date:To:From:Cc:Subject:Message-ID:Feedback-ID:From:To:Cc:Date: Subject:Reply-To:Feedback-ID:Message-ID:BIMI-Selector; b=r6Dmio5jwAzk2lrH7eODpHW/s/eMvEwKsCKWKMc0MsVTpDLH7wZnagu0XLdJQwVk6 4AY5/hFqYIersJo8N5szBg3CXV8t9nOwDVHGbgKi77FoREqHroP+zaGygmOdXvBcoy X76AIJcXYAq9xGzZpH/EfyRWXmfbp8VzJvO1+llLOmHVJWfyAIgCK9tCqX+gqT+y1J 5CuHqGGhDTRJoDLPTJ2dCVaeNqbGpk8JYPWqGqlxKo9mAETjWeoHyYsWLJt7V50n5L PnYBtsGtdrolbx8NQ7EJt8npvhYemo4R4mceahKMTltc8NWIuFcU321lqik3oY4NlJ h3h5AuqodvMOw== Date: Sun, 06 Jul 2025 04:00:32 +0000 To: rust-for-linux@vger.kernel.org, linux-pci@vger.kernel.org From: Rahul Rameshbabu Cc: dakr@kernel.org, alex.gaynor@gmail.com, bhelgaas@google.com, kwilczynski@kernel.org, ojeda@kernel.org, wt@penguintechs.org, Rahul Rameshbabu Subject: [PATCH v2] rust: pci: fix documentation related to Device instances Message-ID: <20250706035944.18442-3-sergeantsagara@protonmail.com> Feedback-ID: 26003777:user:proton X-Pm-Message-ID: 3aa994d710a1d3aae738648b2fb2df6668803f52 Precedence: bulk X-Mailing-List: rust-for-linux@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Device instances in the pci crate represent a valid struct pci_dev, not a struct device. Fixes: 7b948a2af6b5 ("rust: pci: fix unrestricted &mut pci::Device") Signed-off-by: Rahul Rameshbabu --- Notes: Changes: =20 v1->v2: * Added Fixes: git trailer * Fixed warnings from ./scripts/checkpatch.pl rust/kernel/pci.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/rust/kernel/pci.rs b/rust/kernel/pci.rs index 6b94fd7a3ce9..b991fb440882 100644 --- a/rust/kernel/pci.rs +++ b/rust/kernel/pci.rs @@ -254,7 +254,8 @@ pub trait Driver: Send { /// /// # Invariants /// -/// A [`Device`] instance represents a valid `struct device` created by th= e C portion of the kernel. +/// A [`Device`] instance represents a valid `struct pci_dev` created by t= he C portion of the +/// kernel. #[repr(transparent)] pub struct Device( Opaque, base-commit: 2009a2d5696944d85c34d75e691a6f3884e787c0 --=20 2.47.2