archive mirror
 help / color / mirror / Atom feed
From: Benno Lossin <>
To: "Alice Ryhl" <>,
	"Miguel Ojeda" <>,
	"Alex Gaynor" <>,
	"Wedson Almeida Filho" <>,
	"Boqun Feng" <>,
	"Gary Guo" <>,
	"Björn Roy Baron" <>,
	"Andreas Hindborg" <>
Subject: Re: [PATCH] rust: add `Module::as_ptr`
Date: Sat, 09 Mar 2024 13:03:59 +0000	[thread overview]
Message-ID: <> (raw)
In-Reply-To: <>

On 2/26/24 10:44, Alice Ryhl wrote:
> This allows you to get a raw pointer to THIS_MODULE for use in unsafe
> code. The Rust Binder RFC uses it when defining fops for the binderfs
> component [1].
> This doesn't really need to go in now - it could go in together with
> Rust Binder like how it is sent in the Rust Binder RFC. However, the
> upcoming 1.77.0 release of the Rust compiler introduces a new warning,
> and applying this patch now will silence that warning. That allows us to
> avoid adding the #[allow(dead_code)] annotation seen in [2].
> Link: [1]
> Link: [2]
> Signed-off-by: Alice Ryhl <>

Reviewed-by: Benno Lossin <>


  reply	other threads:[~2024-03-09 13:04 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-02-26  9:44 [PATCH] rust: add `Module::as_ptr` Alice Ryhl
2024-03-09 13:03 ` Benno Lossin [this message]
2024-03-13 19:09 ` Trevor Gross
2024-03-29 19:45 ` Miguel Ojeda

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \ \ \ \ \ \ \ \ \ \ \ \ \

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).