diff options
author | Waiman Long <longman@redhat.com> | 2024-02-22 10:05:38 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2024-02-28 13:08:37 +0100 |
commit | d6cac0b6b0115fd0a5f51a49401473626e4e4fe7 (patch) | |
tree | a97f233a82d71861781027b42c4d85c45ebe18af /virt | |
parent | ca4bc2e07b716509fd279d2b449bb42f4263a9c8 (diff) | |
download | linux-stable-d6cac0b6b0115fd0a5f51a49401473626e4e4fe7.tar.gz linux-stable-d6cac0b6b0115fd0a5f51a49401473626e4e4fe7.tar.bz2 linux-stable-d6cac0b6b0115fd0a5f51a49401473626e4e4fe7.zip |
locking/mutex: Simplify <linux/mutex.h>
CONFIG_DEBUG_MUTEXES and CONFIG_PREEMPT_RT are mutually exclusive. They
can't be both set at the same time. Move up the mutex_destroy() function
declaration and the __DEBUG_MUTEX_INITIALIZER() macro above the "#ifndef
CONFIG_PREEMPT_RT" section to eliminate duplicated mutex_destroy()
declaration.
Also remove the duplicated mutex_trylock() function declaration in the
CONFIG_PREEMPT_RT section.
Signed-off-by: Waiman Long <longman@redhat.com>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Reviewed-by: Boqun Feng <boqun.feng@gmail.com>
Link: https://lore.kernel.org/r/20240222150540.79981-3-longman@redhat.com
Diffstat (limited to 'virt')
0 files changed, 0 insertions, 0 deletions