qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Peter Maydell <peter.maydell@linaro.org>
To: Paolo Bonzini <pbonzini@redhat.com>
Cc: Jan Kiszka <jan.kiszka@siemens.com>,
	David Gibson <david@gibson.dropbear.id.au>,
	qemu-devel@nongnu.org, qemulist@gmail.com
Subject: Re: [Qemu-devel] [PATCH 01/12] add a header file for atomic operations
Date: Wed, 15 May 2013 17:11:02 +0100	[thread overview]
Message-ID: <CAFEAcA-5sLC0H3dbCWnbyUw2kZo0w-j65HYKPEZPkmxubUPXeg@mail.gmail.com> (raw)
In-Reply-To: <1368632937-32272-2-git-send-email-pbonzini@redhat.com>

On 15 May 2013 16:48, Paolo Bonzini <pbonzini@redhat.com> wrote:
> We're already using them in several places, but __sync builtins are just
> too ugly to type, and do not provide seqcst load/store operations.

This doesn't compile:

  CC    tests/test-thread-pool.o
tests/test-thread-pool.c: In function ‘worker_cb’:
tests/test-thread-pool.c:20:34: error: macro "atomic_inc" passed 2
arguments, but takes just 1
tests/test-thread-pool.c:20:12: error: ‘atomic_inc’ undeclared (first
use in this function)
tests/test-thread-pool.c:20:12: note: each undeclared identifier is
reported only once for each function it appears in
tests/test-thread-pool.c:19:21: error: unused variable ‘data’
[-Werror=unused-variable]
tests/test-thread-pool.c: In function ‘long_cb’:
tests/test-thread-pool.c:26:27: error: macro "atomic_inc" passed 2
arguments, but takes just 1
tests/test-thread-pool.c:26:5: error: ‘atomic_inc’ undeclared (first
use in this function)
tests/test-thread-pool.c:28:27: error: macro "atomic_inc" passed 2
arguments, but takes just 1
tests/test-thread-pool.c:25:21: error: unused variable ‘data’
[-Werror=unused-variable]
tests/test-thread-pool.c: In function ‘worker_cb’:
tests/test-thread-pool.c:21:1: error: control reaches end of non-void
function [-Werror=return-type]
cc1: all warnings being treated as errors

thanks
-- PMM

  reply	other threads:[~2013-05-15 16:11 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-05-15 15:48 [Qemu-devel] [RFC PATCH 00/12] RCU implementation for QEMU Paolo Bonzini
2013-05-15 15:48 ` [Qemu-devel] [PATCH 01/12] add a header file for atomic operations Paolo Bonzini
2013-05-15 16:11   ` Peter Maydell [this message]
2013-05-15 15:48 ` [Qemu-devel] [PATCH 02/12] qemu-thread: add QemuEvent Paolo Bonzini
2013-05-16 10:15   ` Stefan Hajnoczi
2013-05-16 10:49     ` Paolo Bonzini
2013-05-15 15:48 ` [Qemu-devel] [PATCH 03/12] rcu: add rcu library Paolo Bonzini
2013-05-16 11:46   ` Stefan Hajnoczi
2013-05-17  4:36   ` liu ping fan
2013-05-17  7:08     ` liu ping fan
2013-05-17  7:35     ` Paolo Bonzini
2013-05-15 15:48 ` [Qemu-devel] [PATCH 04/12] qemu-thread: register threads with RCU Paolo Bonzini
2013-05-15 15:48 ` [Qemu-devel] [PATCH 05/12] rcu: add call_rcu Paolo Bonzini
2013-05-15 15:48 ` [Qemu-devel] [PATCH 06/12] rcu: add rcutorture Paolo Bonzini
2013-05-15 15:48 ` [Qemu-devel] [PATCH 07/12] rcu: allow nested calls to rcu_thread_offline/rcu_thread_online Paolo Bonzini
2013-05-15 15:48 ` [Qemu-devel] [PATCH 08/12] qemu-thread: report RCU quiescent states Paolo Bonzini
2013-05-16  8:33   ` liu ping fan
2013-05-16  8:43     ` Paolo Bonzini
2013-05-15 15:48 ` [Qemu-devel] [PATCH 09/12] event loop: " Paolo Bonzini
2013-05-15 15:48 ` [Qemu-devel] [PATCH 10/12] cpus: " Paolo Bonzini
2013-05-15 15:48 ` [Qemu-devel] [PATCH 11/12] block: " Paolo Bonzini
2013-05-15 15:48 ` [Qemu-devel] [PATCH 12/12] migration: " Paolo Bonzini
2013-05-15 16:03 ` [Qemu-devel] [RFC PATCH 00/12] RCU implementation for QEMU Peter Maydell
2013-05-15 16:17   ` Paolo Bonzini
2013-05-15 16:16 ` Peter Maydell
2013-05-15 16:19   ` Paolo Bonzini
2013-05-15 19:28 ` Peter Maydell

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAFEAcA-5sLC0H3dbCWnbyUw2kZo0w-j65HYKPEZPkmxubUPXeg@mail.gmail.com \
    --to=peter.maydell@linaro.org \
    --cc=david@gibson.dropbear.id.au \
    --cc=jan.kiszka@siemens.com \
    --cc=pbonzini@redhat.com \
    --cc=qemu-devel@nongnu.org \
    --cc=qemulist@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).