[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v3 3/5] thread: de-const qemu_spin_destroy
From: |
Emilio Cota |
Subject: |
[PATCH v3 3/5] thread: de-const qemu_spin_destroy |
Date: |
Wed, 11 Jan 2023 10:16:26 -0500 |
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Signed-off-by: Emilio Cota <cota@braap.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
- [PATCH v3 0/5] tsan fixes, Emilio Cota, 2023/01/11
- [PATCH v3 1/5] cpu: free cpu->tb_jmp_cache with RCU, Emilio Cota, 2023/01/11
- [PATCH v3 2/5] util/qht: add missing atomic_set(hashes[i]), Emilio Cota, 2023/01/11
- [PATCH v3 3/5] thread: de-const qemu_spin_destroy,
Emilio Cota <=
- [PATCH v3 4/5] util/qht: use striped locks under TSAN, Emilio Cota, 2023/01/11
- [PATCH v3 5/5] plugins: make qemu_plugin_user_exit's locking order consistent with fork_start's, Emilio Cota, 2023/01/11
- Re: [PATCH v3 0/5] tsan fixes, Alex Bennée, 2023/01/11