]> www.infradead.org Git - users/jedix/linux-maple.git/commit
rust: add helper for mutex_trylock
authorPaolo Bonzini <pbonzini@redhat.com>
Wed, 28 May 2025 08:34:30 +0000 (10:34 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 28 May 2025 10:28:30 +0000 (06:28 -0400)
commit4dbe28c0fabd69842890ba38f185b96664cba26a
tree897e71ba816c4687c79ea0d30ac85975dc90dfd0
parent8f56770d114b0261bc8d69bbc7ce8ce0c196d630
rust: add helper for mutex_trylock

After commit c5b6ababd21a ("locking/mutex: implement mutex_trylock_nested",
currently in the KVM tree) mutex_trylock() will be a macro when lockdep is
enabled.  Rust therefore needs the corresponding helper.  Just add it and
the rust/bindings/bindings_helpers_generated.rs Makefile rules will do
their thing.

Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Message-ID: <20250528083431.1875345-1-pbonzini@redhat.com>
Acked-by: Miguel Ojeda <ojeda@kernel.org>
Reviewed-by: Alice Ryhl <aliceryhl@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
rust/helpers/mutex.c