aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/fpga/tests/fpga-bridge-test.c
diff options
context:
space:
mode:
authorBart Van Assche <[email protected]>2024-09-12 22:39:55 +0000
committerGreg Kroah-Hartman <[email protected]>2024-09-13 05:36:02 +0000
commite837d833a13461c10f265a65ce6612e6dd43e76f (patch)
tree30aabfca8acbe44a18ef0a6cb71e71022843d93c /drivers/fpga/tests/fpga-bridge-test.c
parentlocking/mutex: Define mutex_init() once (diff)
downloadkernel-e837d833a13461c10f265a65ce6612e6dd43e76f.tar.gz
kernel-e837d833a13461c10f265a65ce6612e6dd43e76f.zip
locking/mutex: Introduce mutex_init_with_key()
The following pattern occurs 5 times in kernel drivers: lockdep_register_key(key); __mutex_init(mutex, name, key); In several cases the 'name' argument matches #mutex. Hence, introduce the mutex_init_with_key() macro. This macro derives the 'name' argument from the 'mutex' argument. Suggested-by: Andy Shevchenko <[email protected]> Acked-by: Peter Zijlstra (Intel) <[email protected]> Reviewed-by: Andy Shevchenko <[email protected]> Cc: Thomas Gleixner <[email protected]> Cc: Ingo Molnar <[email protected]> Signed-off-by: Bart Van Assche <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'drivers/fpga/tests/fpga-bridge-test.c')
0 files changed, 0 insertions, 0 deletions