thread: de-const qemu_spin_destroy

Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Signed-off-by: Emilio Cota <cota@braap.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20230111151628.320011-4-cota@braap.org>
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Message-Id: <20230124180127.1881110-29-alex.bennee@linaro.org>
This commit is contained in:
Emilio Cota 2023-01-24 18:01:20 +00:00 committed by Alex Bennée
parent def48dddcf
commit 047e2bd338

View File

@ -237,11 +237,10 @@ static inline void qemu_spin_init(QemuSpin *spin)
#endif #endif
} }
/* const parameter because the only purpose here is the TSAN annotation */ static inline void qemu_spin_destroy(QemuSpin *spin)
static inline void qemu_spin_destroy(const QemuSpin *spin)
{ {
#ifdef CONFIG_TSAN #ifdef CONFIG_TSAN
__tsan_mutex_destroy((void *)spin, __tsan_mutex_not_static); __tsan_mutex_destroy(spin, __tsan_mutex_not_static);
#endif #endif
} }