From: "Philippe Mathieu-Daudé" <f4bug@amsat.org>
To: Richard Henderson <richard.henderson@linaro.org>, qemu-devel@nongnu.org
Cc: "Daniel P. Berrangé" <berrange@redhat.com>,
"Eduardo Habkost" <ehabkost@redhat.com>,
qemu-trivial@nongnu.org, "Michael Tokarev" <mjt@tls.msk.ru>,
"Markus Armbruster" <armbru@redhat.com>,
"Laurent Vivier" <laurent@vivier.eu>,
"Paolo Bonzini" <pbonzini@redhat.com>
Subject: Re: [PATCH 2/3] io/task: Move 'qom/object.h' header to source
Date: Mon, 4 May 2020 21:43:13 +0200 [thread overview]
Message-ID: <c28f6af0-4a41-3f01-6bac-db87f40fd5fc@amsat.org> (raw)
In-Reply-To: <799fe603-906c-c00b-07ce-0e7619c444f5@linaro.org>
On 5/4/20 7:42 PM, Richard Henderson wrote:
> On 5/4/20 1:46 AM, Philippe Mathieu-Daudé wrote:
>> We need "qom/object.h" to call object_ref()/object_unref().
>
> This description doesn't seem to match
>
>> +++ b/include/io/task.h
>> @@ -21,8 +21,6 @@
>> #ifndef QIO_TASK_H
>> #define QIO_TASK_H
>>
>> -#include "qom/object.h"
>> -
>> typedef struct QIOTask QIOTask;
>>
>> typedef void (*QIOTaskFunc)(QIOTask *task,
>> diff --git a/io/task.c b/io/task.c
>> index 1ae7b86488..53c0bed686 100644
>> --- a/io/task.c
>> +++ b/io/task.c
>> @@ -22,6 +22,7 @@
>> #include "io/task.h"
>> #include "qapi/error.h"
>> #include "qemu/thread.h"
>> +#include "qom/object.h"
>
> the change. Since io/task.c includes io/tash.h, what are you actually doing?
Sorry to not document clearly on the cover.
The original goal was to stop using $SRC_PATH as include directory, but
as it is huge I believe it will never get fully accepted, so I simply
kept the few maybe worthwhile patches...
The final patch is:
-- >8 --
--- a/configure
+++ b/configure
@@ -601,7 +601,7 @@ QEMU_CFLAGS="-fno-strict-aliasing -fno-common
-fwrapv -std=gnu99 $QEMU_CFLAGS"
QEMU_CFLAGS="-Wall -Wundef -Wwrite-strings -Wmissing-prototypes
$QEMU_CFLAGS"
QEMU_CFLAGS="-Wstrict-prototypes -Wredundant-decls $QEMU_CFLAGS"
QEMU_CFLAGS="-D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE
$QEMU_CFLAGS"
-QEMU_INCLUDES="-iquote . -iquote \$(SRC_PATH) -iquote
\$(SRC_PATH)/accel/tcg -iquote \$(SRC_PATH)/include"
+QEMU_INCLUDES="-iquote . -iquote \$(SRC_PATH)/accel/tcg -iquote
\$(SRC_PATH)/include"
QEMU_INCLUDES="$QEMU_INCLUDES -iquote \$(SRC_PATH)/disas/libvixl"
if test "$debug_info" = "yes"; then
CFLAGS="-g $CFLAGS"
---
next prev parent reply other threads:[~2020-05-04 19:44 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-05-04 8:46 [PATCH 0/3] qom: Few trivial patches Philippe Mathieu-Daudé
2020-05-04 8:46 ` [PATCH 1/3] qom/object: Move Object typedef to 'qemu/typedefs.h' Philippe Mathieu-Daudé
2020-05-04 17:40 ` Richard Henderson
2020-05-04 8:46 ` [PATCH 2/3] io/task: Move 'qom/object.h' header to source Philippe Mathieu-Daudé
2020-05-04 17:42 ` Richard Henderson
2020-05-04 19:43 ` Philippe Mathieu-Daudé [this message]
2020-05-04 8:46 ` [PATCH 3/3] qom/object: Make reparenting error more verbose Philippe Mathieu-Daudé
2020-05-04 11:30 ` [PATCH 0/3] qom: Few trivial patches no-reply
2020-05-04 11:36 ` no-reply
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=c28f6af0-4a41-3f01-6bac-db87f40fd5fc@amsat.org \
--to=f4bug@amsat.org \
--cc=armbru@redhat.com \
--cc=berrange@redhat.com \
--cc=ehabkost@redhat.com \
--cc=laurent@vivier.eu \
--cc=mjt@tls.msk.ru \
--cc=pbonzini@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=qemu-trivial@nongnu.org \
--cc=richard.henderson@linaro.org \
/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).