summaryrefslogtreecommitdiff
path: root/drivers/android
diff options
context:
space:
mode:
authorWill Deacon <will@kernel.org>2024-01-26 18:24:10 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2024-01-31 03:20:54 +0300
commitac9762a74c7ca7cbfcb4c65f5871373653a046ac (patch)
treef7e744340a706996e7deef7e543719bfb0c52764 /drivers/android
parenta4e61de63e34860c36a71d1a364edba16fb6203b (diff)
downloadlinux-ac9762a74c7ca7cbfcb4c65f5871373653a046ac.tar.xz
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>
Diffstat (limited to 'drivers/android')
0 files changed, 0 insertions, 0 deletions