aboutsummaryrefslogtreecommitdiff
path: root/include/qemu/seqlock.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/qemu/seqlock.h')
-rw-r--r--include/qemu/seqlock.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/qemu/seqlock.h b/include/qemu/seqlock.h
index 8dee11d101..c367516708 100644
--- a/include/qemu/seqlock.h
+++ b/include/qemu/seqlock.h
@@ -45,7 +45,7 @@ static inline void seqlock_write_end(QemuSeqLock *sl)
atomic_set(&sl->sequence, sl->sequence + 1);
}
-static inline unsigned seqlock_read_begin(QemuSeqLock *sl)
+static inline unsigned seqlock_read_begin(const QemuSeqLock *sl)
{
/* Always fail if a write is in progress. */
unsigned ret = atomic_read(&sl->sequence);