From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:36477) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XrZMU-00089Q-Ij for qemu-devel@nongnu.org; Thu, 20 Nov 2014 16:34:07 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XrZML-0000P4-Al for qemu-devel@nongnu.org; Thu, 20 Nov 2014 16:33:58 -0500 Received: from e06smtp16.uk.ibm.com ([195.75.94.112]:39749) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XrZML-0000OX-1V for qemu-devel@nongnu.org; Thu, 20 Nov 2014 16:33:49 -0500 Received: from /spool/local by e06smtp16.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Thu, 20 Nov 2014 21:33:48 -0000 Received: from b06cxnps3075.portsmouth.uk.ibm.com (d06relay10.portsmouth.uk.ibm.com [9.149.109.195]) by d06dlp03.portsmouth.uk.ibm.com (Postfix) with ESMTP id 0910D1B0804B for ; Thu, 20 Nov 2014 21:33:58 +0000 (GMT) Received: from d06av06.portsmouth.uk.ibm.com (d06av06.portsmouth.uk.ibm.com [9.149.37.217]) by b06cxnps3075.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id sAKLXjpX16056660 for ; Thu, 20 Nov 2014 21:33:45 GMT Received: from d06av06.portsmouth.uk.ibm.com (localhost [127.0.0.1]) by d06av06.portsmouth.uk.ibm.com (8.14.4/8.14.4/NCO v10.0 AVout) with ESMTP id sAKGUr6i025079 for ; Thu, 20 Nov 2014 11:30:54 -0500 From: Christian Borntraeger Date: Thu, 20 Nov 2014 22:33:35 +0100 Message-Id: <1416519221-22299-4-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 3/9] valgrind/i386: avoid false positives on KVM_SET_PIT 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_pit_state2 contains pad fields. Let's use a designated initializer to avoid false positives from valgrind/memcheck. Signed-off-by: Christian Borntraeger --- hw/i386/kvm/i8254.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/i386/kvm/i8254.c b/hw/i386/kvm/i8254.c index 472af81..90eea10 100644 --- a/hw/i386/kvm/i8254.c +++ b/hw/i386/kvm/i8254.c @@ -138,7 +138,7 @@ static void kvm_pit_get(PITCommonState *pit) static void kvm_pit_put(PITCommonState *pit) { KVMPITState *s = KVM_PIT(pit); - struct kvm_pit_state2 kpit; + struct kvm_pit_state2 kpit = {}; struct kvm_pit_channel_state *kchan; struct PITChannelState *sc; int i, ret; -- 1.9.3