From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 236F131771D; Fri, 15 Aug 2025 18:32:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1755282776; cv=none; b=cEdSuMNvtMeNQ5xfSIveOsDLR31GebrbfSjaSUrkUNgCqpdHObxcCMM05IXdP+YO71Q6ACU8G9xPHsn54Rd5xLJeff71JMNoeACwtAylFFG7n/gkRy7/R5murm5/ferQRFLyMMQnxQg3EAU7J+XaHAon8hw4f3RQzPQVs0udqL8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1755282776; c=relaxed/simple; bh=07T+It7VH1Rnm9OWwIJCvQzKK97aMp17mAB9ggKDiqA=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=UQn6U5glhBQmbbYp+ZR9rKDsPgLGO70AcGXXdm7fCuNI/PN667Npuv2cMIoXBY3F5lA6QTnz8M7xQ6lQAIS9WibPNcjLaRbyKGaPL8pqFyrMGDku6ohnhAFcT/sOVfHk19y1B5HIzlh8FxvXEdASkybk8UbRZ0YW4vlantC3h2Q= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=pfWgjMLX; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="pfWgjMLX" Received: by smtp.kernel.org (Postfix) with ESMTPSA id BECC5C4CEEB; Fri, 15 Aug 2025 18:32:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1755282774; bh=07T+It7VH1Rnm9OWwIJCvQzKK97aMp17mAB9ggKDiqA=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=pfWgjMLX0EfaiRYXdtk2n2uruOtuaY3PNO+bDoyLPzKA2zganLKmPAb90cMiC/E2s 14sDfdjnMYqpJ/At6N8YrHi5p4iyr1KPSXhl7izxgSZnaaTKYdQ9uv2eefIozw1l0k aQ46JDN04Ka6ZhRRwyk/0+9mqnD/cii6OZPvB9ORxcnFh61jhRzL86hHfaS+umc002 etSnLyVQ4dwCCoRPopSdXgH1i4GlBDwhCw9pdAe03PEBNKHF/SkYH+WgFkqq9I5K4r WytXvzeN0xfuVD+nB0Jwq8Y8M4PlZhnEM/aGNBVW79+7AC0IqtiN9Dp8EdpFb35qBx 3c2p8q4j6/Ygw== Message-ID: <82bbfd71-ac7b-4247-ad63-d6c30951bd13@kernel.org> Date: Fri, 15 Aug 2025 20:32:49 +0200 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v3 1/2] rust: Update PCI binding safety comments and add inline compiler hint To: Alistair Popple Cc: rust-for-linux@vger.kernel.org, Bjorn Helgaas , =?UTF-8?Q?Krzysztof_Wilczy=C5=84ski?= , Miguel Ojeda , Alex Gaynor , Boqun Feng , Gary Guo , =?UTF-8?Q?Bj=C3=B6rn_Roy_Baron?= , Benno Lossin , Andreas Hindborg , Alice Ryhl , Trevor Gross , Greg Kroah-Hartman , "Rafael J. Wysocki" , John Hubbard , Alexandre Courbot , linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org References: <20250730013417.640593-1-apopple@nvidia.com> From: Danilo Krummrich Content-Language: en-US In-Reply-To: <20250730013417.640593-1-apopple@nvidia.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit On 7/30/25 3:34 AM, Alistair Popple wrote: > Update the safety comments to be consistent with other safety comments > in the PCI bindings. Also add an inline compiler hint. > > Suggested-by: Danilo Krummrich > Cc: Danilo Krummrich > Cc: Bjorn Helgaas > Cc: Krzysztof Wilczyński > Cc: Miguel Ojeda > Cc: Alex Gaynor > Cc: Boqun Feng > Cc: Gary Guo > Cc: Björn Roy Baron > Cc: Benno Lossin > Cc: Andreas Hindborg > Cc: Alice Ryhl > Cc: Trevor Gross > Cc: Greg Kroah-Hartman > Cc: Rafael J. Wysocki > Cc: John Hubbard > Cc: Alexandre Courbot > Cc: linux-pci@vger.kernel.org > Cc: linux-kernel@vger.kernel.org > Signed-off-by: Alistair Popple Applied to driver-core-testing, thanks! Alistair, do you mind sending a follow-up patch to replace the raw bindings:resource_size_t return types on resource_start() and resource_len() with the Rust ResourceSize type?