aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEmilio Cota <cota@braap.org>2023-01-24 18:01:20 +0000
committerAlex Bennée <alex.bennee@linaro.org>2023-02-02 11:48:20 +0000
commit047e2bd3383ba488f928b335f9d99cef3a216418 (patch)
tree551de768daa148df52c71486e68a905be19108d5
parentdef48dddcfb2b8d9ef64ba5e6845ace006d30d27 (diff)
downloadqemu-047e2bd3383ba488f928b335f9d99cef3a216418.zip
qemu-047e2bd3383ba488f928b335f9d99cef3a216418.tar.gz
qemu-047e2bd3383ba488f928b335f9d99cef3a216418.tar.bz2
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>
-rw-r--r--include/qemu/thread.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/include/qemu/thread.h b/include/qemu/thread.h
index 7c6703b..7841084 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
}