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 C76D51C5F2C; Wed, 19 Mar 2025 14:25:32 +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=1742394332; cv=none; b=TeLpeJYIUTOzmx7rtdJyNLIAufFAuoTN5bXd85PwmhXnGaxoNNUdIzyGToAbknnYL0VUaKrAUqxEdrcQetLouE2hujkl5ctYceQqBcjYtpgjlBscjC1lcxx1t9yNZoePR5fJAFWBEzQGC0zINppWtD5H9GYCYjO8io+FP/gJPGw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1742394332; c=relaxed/simple; bh=a2iWg/O67JIEPXhrX1uo9DdqqHAnP4v9NGHzDu33uhk=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=uhQ7h7QtXwy8KiLECjDn8WL/tjJAMzCunDOBrnrYHggKS/Jim3+QJ4xu+fPg6bA1NRN8HG87hPqoqVOPLCmqfkTsrYzULUVq1J6GsgahUt03kPkxWShCHMrvGFwLTJbWY16ug5dh+5MUYh0a0FBINKgBqCiNIbegHZhHvZoR2dg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=RcjEQRe0; 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="RcjEQRe0" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 72F56C4CEE8; Wed, 19 Mar 2025 14:25:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1742394332; bh=a2iWg/O67JIEPXhrX1uo9DdqqHAnP4v9NGHzDu33uhk=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=RcjEQRe06Veu1SYlHZjFHNTjM3KsNymwigy8U6ZUERiOqz9UBgKGxC3ALrkpohILS nLI+MBZ4aQjqoNPrdWuvquQvevrd1bb0Za+BYunNb2rFSUvltlE89dWpQwqBZskQN2 VZLdHku1cSYiNXUC+DAXOfCDHfpgHt+Gz5q+91SKTins3oOXsCEYGhlqseG08aw/Nw 9pwDw83p6pJ87EiOphPiRmoJJ8C5eUPU78xblx5u2pY2f25xNdSuZ6OLpB7DbOsikp LRk9WllhiIHXMEue6tRCUJMiwct/Ua7WbWoxdBXp1umfO99SJhMipjdmtEUj/sUZoX va9gd0d06GnaA== Date: Wed, 19 Mar 2025 15:25:26 +0100 From: Danilo Krummrich To: Alexandre Courbot Cc: Miguel Ojeda , Alex Gaynor , Boqun Feng , Gary Guo , =?iso-8859-1?Q?Bj=F6rn?= Roy Baron , Benno Lossin , Andreas Hindborg , Alice Ryhl , Trevor Gross , Bjorn Helgaas , rust-for-linux@vger.kernel.org, linux-kernel@vger.kernel.org, linux-pci@vger.kernel.org Subject: Re: [PATCH v2 2/2] samples: rust: convert PCI rust sample driver to use try_access_with() Message-ID: References: <20250319-try_with-v2-0-822ec63c05fb@nvidia.com> <20250319-try_with-v2-2-822ec63c05fb@nvidia.com> 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=us-ascii Content-Disposition: inline In-Reply-To: <20250319-try_with-v2-2-822ec63c05fb@nvidia.com> On Wed, Mar 19, 2025 at 11:18:56PM +0900, Alexandre Courbot wrote: > This method limits the scope of the revocable guard and is considered > safer to use for most cases, so let's showcase it here. > > Signed-off-by: Alexandre Courbot Acked-by: Danilo Krummrich