[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20260207224907.234815-1-jason.kei.hall@gmail.com>
Date: Sat, 7 Feb 2026 15:49:05 -0700
From: Jason Hall <jason.kei.hall@...il.com>
To: Miguel Ojeda <miguel.ojeda.sandonis@...il.com>
Cc: rust-for-linux@...r.kernel.org,
linux-kernel@...r.kernel.org,
Joe Perches <joe@...ches.com>,
Boqun Feng <boqun@...nel.org>,
Björn Roy Baron <bjorn.roy.baron@...il.com>,
Benno Lossin <benno.lossin@...ton.me>,
Andreas Hindborg <a.hindborg@...nel.org>,
Alice Ryhl <aliceryhl@...gle.com>,
Trevor Gross <tmgross@...ch.edu>,
Danilo Krummrich <dakru@...nel.org>,
Dirk Behme <dirk.behme@...bosch.com>,
Andy Whitcroft <apw@...onical.com>,
Dwaipayan Ray <dwaipayanray1@...il.com>,
Lukas Bulwahn <lukas.bulwahn@...il.com>,
Jason Hall <jason.kei.hall@...il.com>
Subject: [PATCH v9 0/2] modularize Rust lints and add RUST_UNWRAP check
This series moves Rust-specific linting logic into a separate file to
prevent further growth of the main scripts/checkpatch.pl script and
introduces a new lint to enforce safety standards.
The first patch creates the infrastructure for scripts/rust_checkpatch.pl
and adds a conditional loading hook in the main checkpatch script. It
also updates the MAINTAINERS file to track this new file.
The second patch introduces the RUST_UNWRAP lint, which warns against
the use of .unwrap() and .expect() unless they are accompanied by a
'// PANIC:' justification comment.
Jason Hall (2):
scripts: checkpatch: move Rust-specific lints to separate file
scripts: checkpatch: add RUST_UNWRAP lint
MAINTAINERS | 6 ++++++
scripts/checkpatch.pl | 14 ++++++++++++++
scripts/rust_checkpatch.pl | 30 ++++++++++++++++++++++++++++++
3 files changed, 50 insertions(+)
create mode 100644 scripts/rust_checkpatch.pl
--
2.43.0
Powered by blists - more mailing lists