aboutsummaryrefslogtreecommitdiffstats
path: root/rust/helpers/mutex.c
diff options
context:
space:
mode:
authorPaolo Bonzini <[email protected]>2025-05-30 07:45:13 +0000
committerPaolo Bonzini <[email protected]>2025-06-02 07:05:09 +0000
commit438e22801b1958f86883812af70d402eda29c4f5 (patch)
tree5b6756d0f5f7f880a045b70283133339eb55b88f /rust/helpers/mutex.c
parentMerge tag 'kvm-s390-next-6.16-1' of https://git.kernel.org/pub/scm/linux/kern... (diff)
downloadkernel-438e22801b1958f86883812af70d402eda29c4f5.tar.gz
kernel-438e22801b1958f86883812af70d402eda29c4f5.zip
rtmutex_api: provide correct extern functions
Commit fb49f07ba1d9 ("locking/mutex: implement mutex_lock_killable_nest_lock") changed the set of functions that mutex.c defines when CONFIG_DEBUG_LOCK_ALLOC is set. - it removed the "extern" declaration of mutex_lock_killable_nested from include/linux/mutex.h, and replaced it with a macro since it could be treated as a special case of _mutex_lock_killable. It also removed a definition of the function in kernel/locking/mutex.c. - likewise, it replaced mutex_trylock() with the more generic mutex_trylock_nest_lock() and replaced mutex_trylock() with a macro. However, it left the old definitions in place in kernel/locking/rtmutex_api.c, which causes failures when building with CONFIG_RT_MUTEXES=y. Bring over the changes. Fixes: fb49f07ba1d9 ("locking/mutex: implement mutex_lock_killable_nest_lock") Reported-by: Randy Dunlap <[email protected]> Tested-by: Randy Dunlap <[email protected]> Cc: Peter Zijlstra <[email protected]> Signed-off-by: Paolo Bonzini <[email protected]>
Diffstat (limited to 'rust/helpers/mutex.c')
0 files changed, 0 insertions, 0 deletions