Received: from eggs.gnu.org ([208.118.235.92]:46343) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SrXKm-0008P7-U0 for qemu-devel@nongnu.org; Wed, 18 Jul 2012 12:42:46 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SrXKl-00049X-NB for qemu-devel@nongnu.org; Wed, 18 Jul 2012 12:42:44 -0400 Message-ID: <5006E77F.8030602@weilnetz.de> Date: Wed, 18 Jul 2012 18:42:39 +0200 From: Stefan Weil MIME-Version: 1.0 References: <1342627957-31682-1-git-send-email-sw@weilnetz.de> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH] Use macro QEMU_PACKED for new packed structures List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Maydell Cc: qemu-trivial@nongnu.org, qemu-devel@nongnu.org Am 18.07.2012 18:33, schrieb Peter Maydell: > On 18 July 2012 17:12, Stefan Weil wrote: >> Since commit 541dc0d47f10973c241e9955afc2aefc96adec51, >> some new packed structures were added without using QEMU_PACKED. >> >> QEMU_PACKED is needed for compilations with MinGW. >> For other platforms nothing changes. >> >> The code was fixed using this command: >> >> git grep -la '__attribute__ ((packed))'|xargs perl -pi -e 's/__attribute__ \(\(packed\)\)/QEMU_PACKED/' > There's one in tcg/tcg.c as well, which you missed because > it doesn't have a space between the "__attribute__" and > "((packed))". > > (There are also some in some of the tcg-target.c files, > but those are cases of the packed attribute being applied > to individual struct members rather than a whole struct, so > I'm not entirely sure what we should do with those.) > > -- PMM > I noticed those, too, but did not change them because I think that they need more examination (see my comment in http://lists.nongnu.org/archive/html/qemu-devel/2012-07/msg02373.html). Thanks, Stefan W.