From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:38111) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rq4s9-0007Qe-MT for qemu-devel@nongnu.org; Wed, 25 Jan 2012 10:34:59 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Rq4s3-0006qE-Vp for qemu-devel@nongnu.org; Wed, 25 Jan 2012 10:34:53 -0500 Message-ID: <4F202104.5080908@redhat.com> Date: Wed, 25 Jan 2012 08:34:28 -0700 From: Eric Blake MIME-Version: 1.0 References: <1327433600-7403-1-git-send-email-aliguori@us.ibm.com> <1327433600-7403-28-git-send-email-aliguori@us.ibm.com> <4F1F0E2D.2020706@web.de> <4F1F12E7.2020309@us.ibm.com> <4F1F1C28.4040600@web.de> <4F1F1E91.50609@codemonkey.ws> <4F1F233B.8040804@web.de> <4F1F2875.3050509@codemonkey.ws> <4F1F2B77.2020703@web.de> <4F1F38B6.7000506@codemonkey.ws> <4F1FBF31.2020002@web.de> <4F200AEE.20504@codemonkey.ws> <4F201077.1000906@web.de> <4F201464.1010303@codemonkey.ws> In-Reply-To: <4F201464.1010303@codemonkey.ws> Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="------------enig8EDB47F24D6F365C9F8AB485" Subject: Re: [Qemu-devel] [PATCH 27/28] sysbus: apic: ioapic: convert to QEMU Object Model List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Anthony Liguori Cc: Peter Maydell , "Michael S. Tsirkin" , Alexander Graf , qemu-devel@nongnu.org, Blue Swirl , =?ISO-8859-15?Q?Andreas_F=E4rber?= , Jan Kiszka , Paul Brook , qemu-ppc@nongnu.org, Aurelien Jarno , Gerd Hoffmann This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig8EDB47F24D6F365C9F8AB485 Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: quoted-printable On 01/25/2012 07:40 AM, Anthony Liguori wrote: >>> >>> (void *) isn't compatible with integers or function pointers (at leas= t >>> not in a portable way). >=20 > I don't see how they can be compatible since on some platforms > sizeof(void (*)(void)) !=3D sizeof(void *). C99 says they are not required to be the same, but POSIX adds an additional requirement on top of C that all function pointers must be convertible to void* and back without loss of data. Pretty much any system where qemu can compile is probably already complying with that particular POSIX extension to C, even if it is not portable in practice to a pure C environment. --=20 Eric Blake eblake@redhat.com +1-919-301-3266 Libvirt virtualization library http://libvirt.org --------------enig8EDB47F24D6F365C9F8AB485 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) Comment: Public key at http://people.redhat.com/eblake/eblake.gpg Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iQEcBAEBCAAGBQJPICEEAAoJEKeha0olJ0NqsEIH/A/68GBPX//Rj95pD658gOpF hWVBemgTcNInj8Dt3dARxM4nhKy0NKcitTrF5SIpgs8C3i4Jza/8tnYdSx2c+H9I xE36dgY9UjvnlJJctGnTx59h2QpOgdgnizT+khA4w34OG0NyWuD84QRCpHrV3sY/ gbRN4p/g8+48fNTGYUdOJP+HN61zRWSI6BVarUfLL6CGDVrcfu9CVQqxye55J1JA kN+V55hDG+GE2BuY7Uly0MY87w1EB96N+7O9hVwnuZli59cggeLorwwAbf6KiYHM TXg+r22NepHgIRhFPKrXbgD7vQTTMmZiQQQodXYAQdFCGEbkSKeQSD5C+5wNe3Y= =H8TW -----END PGP SIGNATURE----- --------------enig8EDB47F24D6F365C9F8AB485--