From c04649eeeaf5f84ba9e43d0c4ffbe1719b0d940c Mon Sep 17 00:00:00 2001 From: "Emilio G. Cota" Date: Sat, 18 Aug 2018 00:25:12 -0400 Subject: seqlock: constify seqlock_read_begin Signed-off-by: Emilio G. Cota Signed-off-by: Paolo Bonzini --- include/qemu/seqlock.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/qemu/seqlock.h') 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); -- cgit v1.2.3