From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:41253) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eatnV-0007kO-NS for qemu-devel@nongnu.org; Sun, 14 Jan 2018 20:42:51 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eatnU-00037F-LB for qemu-devel@nongnu.org; Sun, 14 Jan 2018 20:42:49 -0500 Date: Mon, 15 Jan 2018 12:42:24 +1100 From: David Gibson Message-ID: <20180115014224.GA2027@umbus.fritz.box> References: <20180114020412.26160-1-f4bug@amsat.org> <20180114020412.26160-4-f4bug@amsat.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="ibTvN161/egqYuK8" Content-Disposition: inline In-Reply-To: <20180114020412.26160-4-f4bug@amsat.org> Subject: Re: [Qemu-devel] [RFC PATCH 3/3] qdev: use device_class_set_parent_realize/unrealize/reset() List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Philippe =?iso-8859-1?Q?Mathieu-Daud=E9?= Cc: Eduardo Habkost , Marcel Apfelbaum , qemu-devel@nongnu.org, Markus Armbruster , "Dr. David Alan Gilbert" , Michael Roth , Paolo Bonzini , "Michael S. Tsirkin" , Richard Henderson , Peter Maydell , Dmitry Fleytman , Jason Wang , Fam Zheng , Alex Williamson , "Edgar E. Iglesias" , Michael Walle , Laurent Vivier , Aurelien Jarno , Yongbok Kim , Anthony Green , Chris Wulff , Marek Vasut , Stafford Horne , Alexander Graf , Mark Cave-Ayland , Artyom Tarasenko , Bastian Koppelmann , Guan Xuetao , Max Filippov , "open list:ARM cores" , "open list:PowerPC" , "open list:S390" --ibTvN161/egqYuK8 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, Jan 13, 2018 at 11:04:12PM -0300, Philippe Mathieu-Daud=E9 wrote: 1;5002;0c> changes generated using the following Coccinelle patch: >=20 > @@ > type DeviceParentClass; > DeviceParentClass *pc; > DeviceClass *dc; > identifier parent_fn; > identifier child_fn; > @@ > ( > +device_class_set_parent_realize(dc, child_fn, &pc->parent_fn); > -pc->parent_fn =3D dc->realize; > ... > -dc->realize =3D child_fn; > | > +device_class_set_parent_unrealize(dc, child_fn, &pc->parent_fn); > -pc->parent_fn =3D dc->unrealize; > ... > -dc->unrealize =3D child_fn; > | > +device_class_set_parent_reset(dc, child_fn, &pc->parent_fn); > -pc->parent_fn =3D dc->reset; > ... > -dc->reset =3D child_fn; > ) >=20 > Signed-off-by: Philippe Mathieu-Daud=E9 PPC parts Acked-by: David Gibson --=20 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 --ibTvN161/egqYuK8 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEdfRlhq5hpmzETofcbDjKyiDZs5IFAlpcBv8ACgkQbDjKyiDZ s5KIMBAA2VsQYLz6EUa9ZuCCIlcqDnDfO3iNowUMMIlrJg+Bip5NTLPUb62PgJwi 5BMlEUjaQVD9trevqqQj7oaFMXZQqHEtiXADbvxIiumC+0pQTVlFzztElEAF2Hqd lZ8TjKnoH5aQwKiU9ukggro6RDKF/S6I5uXGDTNVf41PVld0/gNLlvm5y+wCLIpf 1CcRimM7BMBqsaIfRW1lX+s+9dMJkmcA0eVPz0m0VYSCRSVX+3dW3MbCCsQiw6A8 8iinmSCyTqkLRZv9xtGjYu/riIZIgn91qLCWgmWn5/VnfpfHWReErwz/KQxmaVl/ maeoOjqtX7tlPjMwJIYLl2fz8ip0fU2LP6+HH1w7x5jKuD8AMtaBsKOIksHzCjJE whfTEo6D3RA/ueBW+3FKMK3XW70a42wHiENy+UagKxXwHRpGae1KshpgFubb/gpw BFnBeapExqCVZyZnRkdcgbUpEmae0VoOI5BNZbE8/swZKgAp7zzDMFDs5+I/EEEA gzgcS+7Gz0R8n4N7mr/DCJ1ZFP09k82yIOjxo/VcSWfR4bj28eObJmzfGk21pMsK 4FWXj3msSye6f+mpa6GIPLxuaTVqLtQ565DqQgB2CO5AYDlkzPHCGMfxbT6a7kWe QqVW/JDI3RM89N4TCPrgFChseb9UMV26Yo9kKWvCAV4CKjkXmeQ= =QhOf -----END PGP SIGNATURE----- --ibTvN161/egqYuK8--