All of lore.kernel.org
 help / color / mirror / Atom feed
From: Miguel Ojeda <ojeda@kernel.org>
To: Linus Torvalds <torvalds@linux-foundation.org>
Cc: "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>,
	"Alexandre Courbot" <acourbot@nvidia.com>,
	"Onur Özkan" <work@onurozkan.dev>,
	rust-for-linux@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: [GIT PULL] Rust fixes for 7.2 (2nd)
Date: Sat, 25 Jul 2026 18:53:01 +0200	[thread overview]
Message-ID: <20260725165301.156594-1-ojeda@kernel.org> (raw)

Hi Linus,

Please pull these fixes for Rust.

They have been in linux-next for at least four rounds (most for more
than a week).

No conflicts expected.

Thanks!

Cheers,
Miguel

The following changes since commit dc59e4fea9d83f03bad6bddf3fa2e52491777482:

  Linux 7.2-rc1 (2026-06-28 12:01:31 -0700)

are available in the Git repository at:

  https://git.kernel.org/pub/scm/linux/kernel/git/ojeda/linux.git tags/rust-fixes-7.2-2

for you to fetch changes up to 880c43b185ca52239e75bc546cc4f4d9154d0fed:

  rust: time: fix as_micros_ceil() to round correctly for negative Delta (2026-07-18 19:07:35 +0200)

----------------------------------------------------------------
Rust fixes for v7.2 (2nd)

Toolchain and infrastructure:

 - 'zerocopy' crates: update to v0.8.54 to fix a modpost error under
   'CONFIG_CC_OPTIMIZE_FOR_SIZE=y'.

   There are actually two updates in the PR: the one to v0.8.52 is
   fairly large and was originally not intended for a fixes PR, but the
   actual fix landed in the v0.8.54 one. Thus I included both here.

   The v0.8.52 update includes two things upstream added for us:
   '--cfg no_fp_fmt_parse' to avoid a local workaround, and the new
   'most_traits' feature.

   The good news is that, after these updates, the delta with upstream
   is now trivial: only an identifier prefix change and the SPDX
   parentheses.

 - Fix an objtool warning by adding one more 'noreturn' function for
   Rust 1.99.0 (expected 2026-10-01).

 - Clean up new 'semicolon_in_expressions_from_macros' lint errors for
   Rust 1.99.0 (expected 2026-10-01). The lint can be allowed, but it
   will be a hard error at some point in the future anyway, so clean it
   up now.

 - Locally allow new 'suspicious_runtime_symbol_definitions' lint for
   Rust 1.98.0 (expected 2026-08-20).

 - Globally allow 'clippy::unwrap_or_default' lint since it relies on
   optimizations -- under 'CONFIG_CC_OPTIMIZE_FOR_SIZE=y' it does not
   work well.

'kernel' crate:

 - 'time' module: fix 'Delta::as_micros_ceil()' to round negative values
   correctly.

----------------------------------------------------------------
Alexandre Courbot (1):
      rust: allow `clippy::unwrap_or_default` globally

Alice Ryhl (1):
      rust: device: avoid trailing ; in printing macros

FUJITA Tomonori (1):
      rust: time: fix as_micros_ceil() to round correctly for negative Delta

Miguel Ojeda (4):
      rust: allow `suspicious_runtime_symbol_definitions` lint for Rust >= 1.98
      rust: zerocopy: update to v0.8.52
      rust: zerocopy: update to v0.8.54
      objtool/rust: add one more `noreturn` Rust function for Rust 1.99.0

 Makefile                                      |  5 +++
 init/Kconfig                                  |  3 ++
 rust/Makefile                                 | 16 +++++++--
 rust/bindings/lib.rs                          |  4 +++
 rust/kernel/device.rs                         | 20 +++++------
 rust/kernel/time.rs                           | 11 ++++--
 rust/uapi/lib.rs                              |  4 +++
 rust/zerocopy-derive/README.md                | 14 ++++----
 rust/zerocopy-derive/derive/from_bytes.rs     |  2 +-
 rust/zerocopy-derive/derive/into_bytes.rs     |  2 +-
 rust/zerocopy-derive/derive/known_layout.rs   |  3 +-
 rust/zerocopy-derive/derive/mod.rs            | 20 ++++++-----
 rust/zerocopy-derive/derive/try_from_bytes.rs |  6 ++--
 rust/zerocopy-derive/derive/unaligned.rs      |  2 +-
 rust/zerocopy-derive/lib.rs                   | 36 ++++++++++++++++++-
 rust/zerocopy-derive/repr.rs                  |  2 +-
 rust/zerocopy-derive/util.rs                  | 34 +++++++++++++-----
 rust/zerocopy/README.md                       | 15 ++++----
 rust/zerocopy/rustdoc/style.css               |  1 -
 rust/zerocopy/src/byte_slice.rs               |  2 +-
 rust/zerocopy/src/byteorder.rs                | 50 ++++++++++++++++++++++-----
 rust/zerocopy/src/deprecated.rs               |  2 +-
 rust/zerocopy/src/error.rs                    |  2 +-
 rust/zerocopy/src/impls.rs                    |  4 +--
 rust/zerocopy/src/layout.rs                   |  4 ++-
 rust/zerocopy/src/lib.rs                      | 12 ++++---
 rust/zerocopy/src/macros.rs                   |  2 +-
 rust/zerocopy/src/pointer/inner.rs            |  2 +-
 rust/zerocopy/src/pointer/invariant.rs        |  2 +-
 rust/zerocopy/src/pointer/mod.rs              |  2 +-
 rust/zerocopy/src/pointer/ptr.rs              |  2 +-
 rust/zerocopy/src/pointer/transmute.rs        |  2 +-
 rust/zerocopy/src/ref.rs                      |  2 +-
 rust/zerocopy/src/split_at.rs                 |  2 +-
 rust/zerocopy/src/util/macro_util.rs          |  2 +-
 rust/zerocopy/src/util/macros.rs              |  2 +-
 rust/zerocopy/src/util/mod.rs                 |  8 ++++-
 rust/zerocopy/src/wrappers.rs                 |  2 +-
 tools/objtool/check.c                         |  1 +
 39 files changed, 217 insertions(+), 90 deletions(-)

             reply	other threads:[~2026-07-25 16:53 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-07-25 16:53 Miguel Ojeda [this message]
2026-07-25 17:24 ` [GIT PULL] Rust fixes for 7.2 (2nd) pr-tracker-bot

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=20260725165301.156594-1-ojeda@kernel.org \
    --to=ojeda@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=dakr@kernel.org \
    --cc=daniel.almeida@collabora.com \
    --cc=gary@garyguo.net \
    --cc=linux-kernel@vger.kernel.org \
    --cc=lossin@kernel.org \
    --cc=rust-for-linux@vger.kernel.org \
    --cc=tamird@kernel.org \
    --cc=tmgross@umich.edu \
    --cc=torvalds@linux-foundation.org \
    --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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.