From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:41077) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1apffF-0006Dw-LJ for qemu-devel@nongnu.org; Mon, 11 Apr 2016 13:30:18 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1apffC-00055q-F0 for qemu-devel@nongnu.org; Mon, 11 Apr 2016 13:30:17 -0400 Received: from mail-ig0-x22d.google.com ([2607:f8b0:4001:c05::22d]:34540) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1apffC-00055e-9v for qemu-devel@nongnu.org; Mon, 11 Apr 2016 13:30:14 -0400 Received: by mail-ig0-x22d.google.com with SMTP id gy3so87312861igb.1 for ; Mon, 11 Apr 2016 10:30:14 -0700 (PDT) From: Pranith Kumar Date: Mon, 11 Apr 2016 13:30:23 -0400 Message-Id: <1460395823-1399-1-git-send-email-bobby.prani@gmail.com> Subject: [Qemu-devel] [PATCH] docs/atomics.txt: Update pointer to linux macro List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: pbonzini@redhat.com Cc: qemu-devel@nongnu.org Add a missing end brace and update doc to point to the latest access macro. ACCESS_ONE() is deprecated. Signed-off-by: Pranith Kumar --- docs/atomics.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/atomics.txt b/docs/atomics.txt index ef285e3..bba771e 100644 --- a/docs/atomics.txt +++ b/docs/atomics.txt @@ -62,7 +62,7 @@ operations: typeof(*ptr) atomic_fetch_sub(ptr, val) typeof(*ptr) atomic_fetch_and(ptr, val) typeof(*ptr) atomic_fetch_or(ptr, val) - typeof(*ptr) atomic_xchg(ptr, val + typeof(*ptr) atomic_xchg(ptr, val) typeof(*ptr) atomic_cmpxchg(ptr, old, new) all of which return the old value of *ptr. These operations are @@ -328,7 +328,7 @@ and memory barriers, and the equivalents in QEMU: - atomic_read and atomic_set in Linux give no guarantee at all; atomic_read and atomic_set in QEMU include a compiler barrier - (similar to the ACCESS_ONCE macro in Linux). + (similar to the READ_ONCE/WRITE_ONCE macros in Linux). - most atomic read-modify-write operations in Linux return void; in QEMU, all of them return the old value of the variable. -- 2.8.1