From: Emilio Cota <c...@braap.org>

Reviewed-by: Alex Bennée <alex.ben...@linaro.org>
Signed-off-by: Emilio Cota <c...@braap.org>
Reviewed-by: Richard Henderson <richard.hender...@linaro.org>
Message-Id: <20230111151628.320011-4-c...@braap.org>
Signed-off-by: Alex Bennée <alex.ben...@linaro.org>
---
 include/qemu/thread.h | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/include/qemu/thread.h b/include/qemu/thread.h
index 7c6703bce3..7841084199 100644
--- a/include/qemu/thread.h
+++ b/include/qemu/thread.h
@@ -237,11 +237,10 @@ static inline void qemu_spin_init(QemuSpin *spin)
 #endif
 }
 
-/* const parameter because the only purpose here is the TSAN annotation */
-static inline void qemu_spin_destroy(const QemuSpin *spin)
+static inline void qemu_spin_destroy(QemuSpin *spin)
 {
 #ifdef CONFIG_TSAN
-    __tsan_mutex_destroy((void *)spin, __tsan_mutex_not_static);
+    __tsan_mutex_destroy(spin, __tsan_mutex_not_static);
 #endif
 }
 
-- 
2.34.1


Reply via email to