From: "Andreas Färber" <afaerber@suse.de>
To: David Gibson <david@gibson.dropbear.id.au>
Cc: scottwood@freescale.com, peter.maydell@linaro.org,
qemu-ppc@nongnu.org, agraf@suse.de, qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH] sysbus: Remove ignored return value of FindSysbusDeviceFunc
Date: Mon, 18 Jan 2016 18:45:14 +0100 [thread overview]
Message-ID: <569D24AA.6010507@suse.de> (raw)
In-Reply-To: <1453091992-961-1-git-send-email-david@gibson.dropbear.id.au>
Am 18.01.2016 um 05:39 schrieb David Gibson:
> Functions of type FindSysbusDeviceFunc currently return an integer. I
> recently made an error in a patch because I assumed that this return value
> would control whether iteration of the function across devices continues
> or not. In fact, the function's return value is always ignored.
>
> This changes the function type to return void, so that others don't make
> the same mistake.
Have you considered implementing the behavior you expected? :)
Not necessary for your use case or too complicated?
>
> Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
> ---
>
> Please apply.
Patch looks okay, too short notice for today's pull though.
Usually we avoid "I" in a commit message.
Regards,
Andreas
>
> hw/arm/sysbus-fdt.c | 4 ++--
> hw/core/machine.c | 2 +-
> hw/core/platform-bus.c | 8 ++------
> hw/ppc/e500.c | 4 +---
> hw/ppc/spapr.c | 4 +---
> include/hw/sysbus.h | 2 +-
> 6 files changed, 8 insertions(+), 16 deletions(-)
--
SUSE Linux GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany
GF: Felix Imendörffer, Jane Smithard, Graham Norton; HRB 21284 (AG Nürnberg)
next parent reply other threads:[~2016-01-18 17:45 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <1453091992-961-1-git-send-email-david@gibson.dropbear.id.au>
2016-01-18 17:45 ` Andreas Färber [this message]
2016-01-19 0:37 ` [Qemu-devel] [PATCH] sysbus: Remove ignored return value of FindSysbusDeviceFunc David Gibson
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=569D24AA.6010507@suse.de \
--to=afaerber@suse.de \
--cc=agraf@suse.de \
--cc=david@gibson.dropbear.id.au \
--cc=peter.maydell@linaro.org \
--cc=qemu-devel@nongnu.org \
--cc=qemu-ppc@nongnu.org \
--cc=scottwood@freescale.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).