Received: from eggs.gnu.org ([2001:4830:134:3::10]:60564) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g86v2-0000FV-Qp for qemu-devel@nongnu.org; Thu, 04 Oct 2018 12:56:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1g86uu-0003W7-U9 for qemu-devel@nongnu.org; Thu, 04 Oct 2018 12:56:05 -0400 Received: from mout.kundenserver.de ([212.227.126.134]:58453) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1g86uu-0003Ux-KV for qemu-devel@nongnu.org; Thu, 04 Oct 2018 12:56:00 -0400 References: <20180928142533.8451-1-peter.maydell@linaro.org> From: Laurent Vivier Message-ID: <52177933-047f-d99b-e7d7-2a85e4c8d59c@vivier.eu> Date: Thu, 4 Oct 2018 18:55:47 +0200 MIME-Version: 1.0 In-Reply-To: <20180928142533.8451-1-peter.maydell@linaro.org> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Subject: Re: [Qemu-devel] [PATCH] linux-user: Suppress address-of-packed-member warnings in __get/put_user_e List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Maydell , qemu-devel@nongnu.org Cc: Riku Voipio , Richard Henderson , patches@linaro.org Le 28/09/2018 à 16:25, Peter Maydell a écrit : > Our __get_user_e() and __put_user_e() macros cause newer versions > of clang to generate false-positive -Waddress-of-packed-member > warnings if they are passed the address of a member of a packed > struct (see https://bugs.llvm.org/show_bug.cgi?id=39113). > Suppress these using the _Pragma() operator. > > To put in the pragmas we need to convert the macros from > expressions to statements, but all the callsites effectively > treat them as statements already so this is OK. > > Signed-off-by: Peter Maydell > --- > linux-user/qemu.h | 57 +++++++++++++++++++++++++++++++---------------- > 1 file changed, 38 insertions(+), 19 deletions(-) > Applied to my linux-user branch. Thanks, Laurent