From: Changlong Xie <xiecl.fnst@cn.fujitsu.com>
To: "Wei, Jiangang" <weijg.fnst@cn.fujitsu.com>,
"qemu-devel@nongnu.org" <qemu-devel@nongnu.org>
Cc: "qemu-trivial@nongnu.org" <qemu-trivial@nongnu.org>,
"peter.maydell@linaro.org" <peter.maydell@linaro.org>
Subject: Re: [Qemu-trivial] [Qemu-devel] [PATCH] accel: make configure_accelerator return void
Date: Thu, 14 Apr 2016 11:34:51 +0800 [thread overview]
Message-ID: <570F0FDB.2080701@cn.fujitsu.com> (raw)
In-Reply-To: <1460603955.2269.29.camel@localhost>
On 04/14/2016 11:19 AM, Wei, Jiangang wrote:
> ping...
> Any comments?
> On Tue, 2016-03-15 at 18:07 +0800, Wei Jiangang wrote:
>> Return the negated value of accel_initialised is meaningless,
>> and the caller vl doesn't check it.
>>
>> Signed-off-by: Wei Jiangang <weijg.fnst@cn.fujitsu.com>
>> ---
>> accel.c | 4 +---
>> 1 file changed, 1 insertion(+), 3 deletions(-)
>>
>> diff --git a/accel.c b/accel.c
>> index 0510b90..403eb5e 100644
>> --- a/accel.c
>> +++ b/accel.c
>> @@ -77,7 +77,7 @@ static int accel_init_machine(AccelClass *acc, MachineState *ms)
>> return ret;
>> }
>>
>> -int configure_accelerator(MachineState *ms)
>> +void configure_accelerator(MachineState *ms)
>> {
>> const char *p;
>> char buf[10];
>> @@ -128,8 +128,6 @@ int configure_accelerator(MachineState *ms)
>> if (init_failed) {
>> fprintf(stderr, "Back to %s accelerator.\n", acc->name);
>> }
>> -
>> - return !accel_initialised;
>> }
Have you compiled the code with this path?
Thanks
-Xie
>>
>>
>
>
>
WARNING: multiple messages have this Message-ID (diff)
From: Changlong Xie <xiecl.fnst@cn.fujitsu.com>
To: "Wei, Jiangang" <weijg.fnst@cn.fujitsu.com>,
"qemu-devel@nongnu.org" <qemu-devel@nongnu.org>
Cc: "qemu-trivial@nongnu.org" <qemu-trivial@nongnu.org>,
"peter.maydell@linaro.org" <peter.maydell@linaro.org>
Subject: Re: [Qemu-devel] [PATCH] accel: make configure_accelerator return void
Date: Thu, 14 Apr 2016 11:34:51 +0800 [thread overview]
Message-ID: <570F0FDB.2080701@cn.fujitsu.com> (raw)
In-Reply-To: <1460603955.2269.29.camel@localhost>
On 04/14/2016 11:19 AM, Wei, Jiangang wrote:
> ping...
> Any comments?
> On Tue, 2016-03-15 at 18:07 +0800, Wei Jiangang wrote:
>> Return the negated value of accel_initialised is meaningless,
>> and the caller vl doesn't check it.
>>
>> Signed-off-by: Wei Jiangang <weijg.fnst@cn.fujitsu.com>
>> ---
>> accel.c | 4 +---
>> 1 file changed, 1 insertion(+), 3 deletions(-)
>>
>> diff --git a/accel.c b/accel.c
>> index 0510b90..403eb5e 100644
>> --- a/accel.c
>> +++ b/accel.c
>> @@ -77,7 +77,7 @@ static int accel_init_machine(AccelClass *acc, MachineState *ms)
>> return ret;
>> }
>>
>> -int configure_accelerator(MachineState *ms)
>> +void configure_accelerator(MachineState *ms)
>> {
>> const char *p;
>> char buf[10];
>> @@ -128,8 +128,6 @@ int configure_accelerator(MachineState *ms)
>> if (init_failed) {
>> fprintf(stderr, "Back to %s accelerator.\n", acc->name);
>> }
>> -
>> - return !accel_initialised;
>> }
Have you compiled the code with this path?
Thanks
-Xie
>>
>>
>
>
>
next prev parent reply other threads:[~2016-04-14 3:32 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-03-15 10:07 [Qemu-trivial] [Qemu-devel][PATCH] accel: make configure_accelerator return void Wei Jiangang
2016-03-15 10:07 ` [Qemu-devel] [PATCH] " Wei Jiangang
2016-04-14 3:19 ` [Qemu-trivial] [Qemu-devel][PATCH] " Wei, Jiangang
2016-04-14 3:19 ` [Qemu-devel] [PATCH] " Wei, Jiangang
2016-04-14 3:34 ` Changlong Xie [this message]
2016-04-14 3:34 ` Changlong Xie
2016-04-14 3:53 ` [Qemu-trivial] " Wei, Jiangang
2016-04-14 3:53 ` Wei, Jiangang
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=570F0FDB.2080701@cn.fujitsu.com \
--to=xiecl.fnst@cn.fujitsu.com \
--cc=peter.maydell@linaro.org \
--cc=qemu-devel@nongnu.org \
--cc=qemu-trivial@nongnu.org \
--cc=weijg.fnst@cn.fujitsu.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.