[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20240815074519.2684107-1-nmi@metaspace.dk>
Date: Thu, 15 Aug 2024 07:49:37 +0000
From: Andreas Hindborg <nmi@...aspace.dk>
To: Jens Axboe <axboe@...nel.dk>, Miguel Ojeda <ojeda@...nel.org>, Alex Gaynor <alex.gaynor@...il.com>, Wedson Almeida Filho <wedsonaf@...il.com>
Cc: Andreas Hindborg <a.hindborg@...sung.com>, Boqun Feng <boqun.feng@...il.com>, Gary Guo <gary@...yguo.net>, Björn Roy Baron <bjorn3_gh@...tonmail.com>, Benno Lossin <benno.lossin@...ton.me>, Alice Ryhl <aliceryhl@...gle.com>, "Behme Dirk (XC-CP/ESB5)" <Dirk.Behme@...bosch.com>, "linux-block@...r.kernel.org" <linux-block@...r.kernel.org>, rust-for-linux@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: [PATCH 0/2] rust: fix erranous use of lock class key in rust block device bindings
From: Andreas Hindborg <a.hindborg@...sung.com>
The rust block device bindings include a wrong use of lock class key. This
causes a WARN trace when lockdep is enabled and a `GenDisk` is constructed.
This series fixes the issue by using a static lock class key. To do this, the
series first fixes the rust build system to correctly export rust statics from
the bss segment.
Andreas Hindborg (2):
rust: fix export of bss symbols
rust: block: fix wrong usage of lockdep API
rust/Makefile | 2 +-
rust/kernel/block/mq/gen_disk.rs | 6 ++----
2 files changed, 3 insertions(+), 5 deletions(-)
base-commit: 7c626ce4bae1ac14f60076d00eafe71af30450ba
--
2.46.0
Powered by blists - more mailing lists