diff options
author | Sebastian Andrzej Siewior <[email protected]> | 2023-03-09 14:48:31 +0100 |
---|---|---|
committer | Michael Ellerman <[email protected]> | 2023-10-20 17:11:59 +1100 |
commit | 007240d59c11f87ac4f6cfc6a1d116630b6b634c (patch) | |
tree | e9f488fbcd0455da1e419cf7a4c807d602b68cf6 /lib/test_fortify/write_overflow-strncpy-src.c | |
parent | 73b25505ce043b561028e5571d84dc82aa53c2b4 (diff) |
powerpc/imc-pmu: Use the correct spinlock initializer.
The macro __SPIN_LOCK_INITIALIZER() is implementation specific. Users
that desire to initialize a spinlock in a struct must use
__SPIN_LOCK_UNLOCKED().
Use __SPIN_LOCK_UNLOCKED() for the spinlock_t in imc_global_refc.
Fixes: 76d588dddc459 ("powerpc/imc-pmu: Fix use of mutex in IRQs disabled section")
Signed-off-by: Sebastian Andrzej Siewior <[email protected]>
Signed-off-by: Michael Ellerman <[email protected]>
Link: https://msgid.link/[email protected]
Diffstat (limited to 'lib/test_fortify/write_overflow-strncpy-src.c')
0 files changed, 0 insertions, 0 deletions