Skip to content

Commit

Permalink
thread: de-const qemu_spin_destroy
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
cota authored and stsquad committed Feb 2, 2023
1 parent def48dd commit 047e2bd
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions include/qemu/thread.h
Expand Up @@ -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
}

Expand Down

0 comments on commit 047e2bd

Please sign in to comment.