Skip to content

rust: bug: add warn_once macro

FUJITA Tomonori rust-for-linux 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2rust: bug: document when to use the WARN macrosrust/kernel/bug.rs+5 -01 reply
2/2rust: bug: add warn_once macrorust/helpers/bug.c rust/kernel/bug.rs+130 -100 replies

Reviews trailers per patch

1 of 2 patches has a Reviewed-by or Acked-by.

PatchAndreas Hindborg
1/2R-b
2/2

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH v1 0/2] rust: bug: add warn_once macro

From: FUJITA Tomonori <[email protected]>

This series adds warn_once!, the Rust version of C WARN_ONCE().

Patch 1 documents when to use the WARN macros, based on the comment in include/asm-generic/bug.h. Patch 2 adds warn_once!.

Miguel, patch 2 moves the UML warn_slowpath_fmt() call into warn_slowpath() and updates its SAFETY comment, so [1] can be dropped if this series is applied.

[1] https://lore.kernel.org/rust-for-linux/[email protected]/

FUJITA Tomonori (2):
rust: bug: document when to use the WARN macros
rust: bug: add warn_once macro

 rust/helpers/bug.c |  11 ++++
 rust/kernel/bug.rs | 134 +++++++++++++++++++++++++++++++++++++++++----
 2 files changed, 135 insertions(+), 10 deletions(-)

base-commit: d52549881e6777fdcc79a349028413b182a641d2

Signature · 1 line
2.43.0