Rust for Linux List
 help / color / mirror / Atom feed
From: "Danilo Krummrich" <dakr@kernel.org>
To: "FUJITA Tomonori" <tomo@aliasing.net>
Cc: <ojeda@kernel.org>, <a.hindborg@kernel.org>,
	<acourbot@nvidia.com>, <aliceryhl@google.com>,
	<bjorn3_gh@protonmail.com>, <boqun@kernel.org>,
	<daniel.almeida@collabora.com>, <gary@garyguo.net>,
	<lossin@kernel.org>, <tamird@kernel.org>, <tmgross@umich.edu>,
	<work@onurozkan.dev>, <rust-for-linux@vger.kernel.org>,
	"FUJITA Tomonori" <fujita.tomonori@gmail.com>
Subject: Re: [PATCH v1] rust: bug: Add bug_on macro
Date: Tue, 07 Jul 2026 16:51:40 +0200	[thread overview]
Message-ID: <DJSF9IBYP207.2UQXDE9IVSRUF@kernel.org> (raw)
In-Reply-To: <20260707143026.2774023-1-tomo@aliasing.net>

On Tue Jul 7, 2026 at 4:30 PM CEST, FUJITA Tomonori wrote:
> Use of this macro is heavily discouraged. Prefer warn_on() macro with
> recovery code where feasible. See the documentation for C's BUG_ON()
> for guidance on when it is rarely justified.

Given that, can you please spell out the motivation for this patch?

  reply	other threads:[~2026-07-07 14:51 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-07-07 14:30 [PATCH v1] rust: bug: Add bug_on macro FUJITA Tomonori
2026-07-07 14:51 ` Danilo Krummrich [this message]
2026-07-07 15:20   ` Greg KH
2026-07-07 22:48     ` FUJITA Tomonori
2026-07-08  5:29       ` Greg KH

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=DJSF9IBYP207.2UQXDE9IVSRUF@kernel.org \
    --to=dakr@kernel.org \
    --cc=a.hindborg@kernel.org \
    --cc=acourbot@nvidia.com \
    --cc=aliceryhl@google.com \
    --cc=bjorn3_gh@protonmail.com \
    --cc=boqun@kernel.org \
    --cc=daniel.almeida@collabora.com \
    --cc=fujita.tomonori@gmail.com \
    --cc=gary@garyguo.net \
    --cc=lossin@kernel.org \
    --cc=ojeda@kernel.org \
    --cc=rust-for-linux@vger.kernel.org \
    --cc=tamird@kernel.org \
    --cc=tmgross@umich.edu \
    --cc=tomo@aliasing.net \
    --cc=work@onurozkan.dev \
    /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