mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Alexandre Courbot" <acourbot@nvidia.com>
To: "Yury Norov" <ynorov@nvidia.com>
Cc: "Link Mauve" <linkmauve@linkmauve.fr>,
	"Yury Norov" <yury.norov@gmail.com>,
	rust-for-linux@vger.kernel.org, "Miguel Ojeda" <ojeda@kernel.org>,
	"Boqun Feng" <boqun@kernel.org>, "Gary Guo" <gary@garyguo.net>,
	"Björn Roy Baron" <bjorn3_gh@protonmail.com>,
	"Benno Lossin" <lossin@kernel.org>,
	"Andreas Hindborg" <a.hindborg@kernel.org>,
	"Alice Ryhl" <aliceryhl@google.com>,
	"Trevor Gross" <tmgross@umich.edu>,
	"Danilo Krummrich" <dakr@kernel.org>,
	"Daniel Almeida" <daniel.almeida@collabora.com>,
	"Tamir Duberstein" <tamird@kernel.org>,
	"Onur Özkan" <work@onurozkan.dev>,
	linux-kernel@vger.kernel.org
Subject: Re: [PATCH] rust: num: Add inline annotation to Bounded methods
Date: Tue, 20 Oct 2026 00:07:01 +0900	[thread overview]
Message-ID: <DM8WPWR38VWM.1EJN4UEKQIYV3@nvidia.com> (raw)
In-Reply-To: <atYuY1ExPAqZywrr@yury>

On Mon Oct 19, 2026 at 11:51 PM JST, Yury Norov wrote:
> On Mon, Oct 19, 2026 at 12:57:38PM +0200, Link Mauve wrote:
>> It was previously generating a ton of very short functions, such as
>> <<kernel::num::bounded::Bounded<u32, 32>>::shr::<17, 15>> or
>> <<kernel::num::bounded::Bounded<u16, 16>>::new::<16384>> on use.
>> 
>> These are obviously better inlined, although I wasn’t completely sure
>> between #[inline] and #[inline(always)], but the former worked fine in
>> my setup so I went for it, we can always adjust it later.
>> 
>> Signed-off-by: Link Mauve <linkmauve@linkmauve.fr>
>
> Reviewed-by: Yury Norov <ynorov@nvidia.com>
>
> Do you want me to take the patch with the bitops branch, or you've
> a better route in mind?

So far all the patches touching the `bounded` module have been merged
through the rust tree.

      reply	other threads:[~2026-10-19 15:07 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-10-19 10:57 Link Mauve
2026-10-19 11:09 ` Gary Guo
2026-10-19 14:07 ` Alice Ryhl
2026-10-19 14:25 ` Alexandre Courbot
2026-10-19 14:51 ` Yury Norov
2026-10-19 15:07   ` Alexandre Courbot [this message]

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:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

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

  git send-email \
    --in-reply-to=DM8WPWR38VWM.1EJN4UEKQIYV3@nvidia.com \
    --to=acourbot@nvidia.com \
    --cc=a.hindborg@kernel.org \
    --cc=aliceryhl@google.com \
    --cc=bjorn3_gh@protonmail.com \
    --cc=boqun@kernel.org \
    --cc=dakr@kernel.org \
    --cc=daniel.almeida@collabora.com \
    --cc=gary@garyguo.net \
    --cc=linkmauve@linkmauve.fr \
    --cc=linux-kernel@vger.kernel.org \
    --cc=lossin@kernel.org \
    --cc=ojeda@kernel.org \
    --cc=rust-for-linux@vger.kernel.org \
    --cc=tamird@kernel.org \
    --cc=tmgross@umich.edu \
    --cc=work@onurozkan.dev \
    --cc=ynorov@nvidia.com \
    --cc=yury.norov@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* 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

all inboxes | Powered by JetHome®