diff options
author | Emilio G. Cota <cota@braap.org> | 2018-08-18 00:25:12 -0400 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2018-08-23 18:46:25 +0200 |
commit | c04649eeeaf5f84ba9e43d0c4ffbe1719b0d940c (patch) | |
tree | d179b37916efd33f135ff0e57e571d4e388ff3c5 /include | |
parent | 410573aa2c79265eaa51ea2cd7a2bc5906f3b48f (diff) | |
download | qemu-c04649eeeaf5f84ba9e43d0c4ffbe1719b0d940c.zip qemu-c04649eeeaf5f84ba9e43d0c4ffbe1719b0d940c.tar.gz qemu-c04649eeeaf5f84ba9e43d0c4ffbe1719b0d940c.tar.bz2 |
seqlock: constify seqlock_read_begin
Signed-off-by: Emilio G. Cota <cota@braap.org>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/qemu/seqlock.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/qemu/seqlock.h b/include/qemu/seqlock.h index 8dee11d..c367516 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); |