[PATCH 0/2] rust: fix erranous use of lock class key in rust block device bindings

From: Andreas Hindborg
Date: Thu Aug 15 2024 - 03:50:12 EST


From: Andreas Hindborg <a.hindborg@xxxxxxxxxxx>

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