Files
Linux/drivers/misc
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 <[email protected]>
Cc: David Brazdil <[email protected]>
Cc: Greg Kroah-Hartman <[email protected]>
Signed-off-by: Will Deacon <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
2024-01-30 16:20:54 -08:00
..
2023-12-08 12:02:37 +01:00
…
2023-12-15 17:02:15 +01:00
2023-10-27 08:51:00 +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
…
…
…