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 <[email protected]>
Signed-off-by: Emilio Cota <[email protected]>
Reviewed-by: Richard Henderson <[email protected]>
Message-Id: <[email protected]>
Signed-off-by: Alex Bennée <[email protected]>
Message-Id: <[email protected]>
  • 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
Original file line number Diff line number Diff line change
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.