* Re: [Qemu-devel] [PATCH] sysbus: Remove ignored return value of FindSysbusDeviceFunc [not found] <1453091992-961-1-git-send-email-david@gibson.dropbear.id.au> @ 2016-01-18 17:45 ` Andreas Färber 2016-01-19 0:37 ` David Gibson 0 siblings, 1 reply; 2+ messages in thread From: Andreas Färber @ 2016-01-18 17:45 UTC (permalink / raw) To: David Gibson; +Cc: scottwood, peter.maydell, qemu-ppc, agraf, qemu-devel 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) ^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [Qemu-devel] [PATCH] sysbus: Remove ignored return value of FindSysbusDeviceFunc 2016-01-18 17:45 ` [Qemu-devel] [PATCH] sysbus: Remove ignored return value of FindSysbusDeviceFunc Andreas Färber @ 2016-01-19 0:37 ` David Gibson 0 siblings, 0 replies; 2+ messages in thread From: David Gibson @ 2016-01-19 0:37 UTC (permalink / raw) To: Andreas Färber; +Cc: scottwood, peter.maydell, qemu-ppc, agraf, qemu-devel [-- Attachment #1: Type: text/plain, Size: 1179 bytes --] On Mon, Jan 18, 2016 at 06:45:14PM +0100, Andreas Färber wrote: > 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? A bit of both. > > 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. True, that probably won't make so much sense sitting in the commit history. I'll reword and resend. -- David Gibson | I'll have my music baroque, and my code david AT gibson.dropbear.id.au | minimalist, thank you. NOT _the_ _other_ | _way_ _around_! http://www.ozlabs.org/~dgibson [-- Attachment #2: signature.asc --] [-- Type: application/pgp-signature, Size: 819 bytes --] ^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2016-01-19 0:42 UTC | newest] Thread overview: 2+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- [not found] <1453091992-961-1-git-send-email-david@gibson.dropbear.id.au> 2016-01-18 17:45 ` [Qemu-devel] [PATCH] sysbus: Remove ignored return value of FindSysbusDeviceFunc Andreas Färber 2016-01-19 0:37 ` David Gibson
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).