diff options
author | Waiman Long <[email protected]> | 2024-02-22 10:05:38 -0500 |
---|---|---|
committer | Ingo Molnar <[email protected]> | 2024-02-28 13:08:37 +0100 |
commit | d6cac0b6b0115fd0a5f51a49401473626e4e4fe7 (patch) | |
tree | a97f233a82d71861781027b42c4d85c45ebe18af /lib/test_fortify/write_overflow-strncpy-src.c | |
parent | ca4bc2e07b716509fd279d2b449bb42f4263a9c8 (diff) |
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 <[email protected]>
Signed-off-by: Ingo Molnar <[email protected]>
Reviewed-by: Boqun Feng <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'lib/test_fortify/write_overflow-strncpy-src.c')
0 files changed, 0 insertions, 0 deletions