Will Deacon ac9762a74c misc: open-dice: Fix spurious lockdep warning
When probing the open-dice driver with PROVE_LOCKING=y, lockdep
complains that the mutex in 'drvdata->lock' has a non-static key:

 | INFO: trying to register non-static key.
 | The code is fine but needs lockdep annotation, or maybe
 | you didn't initialize this object before use?
 | turning off the locking correctness validator.

Fix the problem by initialising the mutex memory with mutex_init()
instead of __MUTEX_INITIALIZER().

Cc: Arnd Bergmann <arnd@arndb.de>
Cc: David Brazdil <dbrazdil@google.com>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Will Deacon <will@kernel.org>
Link: https://lore.kernel.org/r/20240126152410.10148-1-will@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2024-01-30 16:20:54 -08:00
..
2023-12-08 12:02:37 +01:00
2023-12-15 17:02:15 +01:00
2024-01-08 16:22:47 -08:00
2023-11-01 20:51:41 -10:00
2023-10-27 08:51:00 +02:00
2021-10-05 15:47:18 +02:00
2023-11-28 19:05:16 +00:00
2023-11-28 19:05:16 +00:00
2024-01-15 12:10:41 -06:00
2022-12-15 10:37:26 -08:00