Received: from eggs.gnu.org ([2001:4830:134:3::10]:36503) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XrZMV-00089T-6E for qemu-devel@nongnu.org; Thu, 20 Nov 2014 16:34:08 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XrZMM-0000Pe-17 for qemu-devel@nongnu.org; Thu, 20 Nov 2014 16:33:59 -0500 Received: from e06smtp14.uk.ibm.com ([195.75.94.110]:46278) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XrZML-0000P1-OJ for qemu-devel@nongnu.org; Thu, 20 Nov 2014 16:33:49 -0500 Received: from /spool/local by e06smtp14.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Thu, 20 Nov 2014 21:33:49 -0000 Received: from b06cxnps4075.portsmouth.uk.ibm.com (d06relay12.portsmouth.uk.ibm.com [9.149.109.197]) by d06dlp03.portsmouth.uk.ibm.com (Postfix) with ESMTP id 02DE21B08040 for ; Thu, 20 Nov 2014 21:34:00 +0000 (GMT) Received: from d06av11.portsmouth.uk.ibm.com (d06av11.portsmouth.uk.ibm.com [9.149.37.252]) by b06cxnps4075.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id sAKLXlL359965530 for ; Thu, 20 Nov 2014 21:33:47 GMT Received: from d06av11.portsmouth.uk.ibm.com (localhost [127.0.0.1]) by d06av11.portsmouth.uk.ibm.com (8.14.4/8.14.4/NCO v10.0 AVout) with ESMTP id sAKLXkjq027174 for ; Thu, 20 Nov 2014 14:33:47 -0700 From: Christian Borntraeger Date: Thu, 20 Nov 2014 22:33:40 +0100 Message-Id: <1416519221-22299-9-git-send-email-borntraeger@de.ibm.com> In-Reply-To: <1416519221-22299-1-git-send-email-borntraeger@de.ibm.com> References: <1416519221-22299-1-git-send-email-borntraeger@de.ibm.com> Subject: [Qemu-devel] [PULL 8/9] valgrind/s390x: avoid false positives on KVM_SET_FPU ioctl List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Paolo Bonzini , Peter Maydell Cc: Christian Borntraeger , qemu-devel struct kvm_fpu contains an alignment padding on s390x. Let's use a designated initializer to avoid false positives from valgrind/memcheck. Signed-off-by: Christian Borntraeger --- target-s390x/kvm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/target-s390x/kvm.c b/target-s390x/kvm.c index d247471..0c1da6e 100644 --- a/target-s390x/kvm.c +++ b/target-s390x/kvm.c @@ -208,7 +208,7 @@ int kvm_arch_put_registers(CPUState *cs, int level) CPUS390XState *env = &cpu->env; struct kvm_sregs sregs; struct kvm_regs regs; - struct kvm_fpu fpu; + struct kvm_fpu fpu = {}; int r; int i; -- 1.9.3