Received: from eggs.gnu.org ([2001:4830:134:3::10]:60399) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WCPPX-0004sC-MQ for qemu-devel@nongnu.org; Sun, 09 Feb 2014 03:06:48 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WCPPS-0008P9-QZ for qemu-devel@nongnu.org; Sun, 09 Feb 2014 03:06:43 -0500 Received: from mx1.redhat.com ([209.132.183.28]:17621) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WCPPS-0008P3-Ix for qemu-devel@nongnu.org; Sun, 09 Feb 2014 03:06:38 -0500 Date: Sun, 9 Feb 2014 06:06:33 -0200 From: Eduardo Habkost Message-ID: <20140209080633.GK28427@otherpad.lan.raisama.net> References: <1391445551-6561-1-git-send-email-pbonzini@redhat.com> <1391445551-6561-17-git-send-email-pbonzini@redhat.com> <52F6695A.7090801@suse.de> <52F6BEB1.2090606@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline In-Reply-To: Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [PULL 16/16] target-i386: Move KVM default-vendor hack to instance_init List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Maydell Cc: Paolo Bonzini , Andreas =?iso-8859-1?Q?F=E4rber?= , QEMU Developers On Sun, Feb 09, 2014 at 12:10:20AM +0000, Peter Maydell wrote: > On 8 February 2014 23:33, Paolo Bonzini wrote: > > Il 08/02/2014 18:28, Andreas F=E4rber ha scritto: > >> Since when is it OK to declare variables in the middle of the block? >=20 > > When the code looks better, it is OK since always: checkpatch.pl does= n't > > complain and -Wdeclaration-after-statement is not added to the compil= er > > flags. >=20 > Huh? checkpatch is notoriously not a reliable guide, and we've had > the "declarations at start of block" rule since forever. Sorry for my confusion, but I was not aware of that rule, and I don't know what I should use as a guide, if checkpatch.pl and CODING_STYLE are not enough. Is there additional coding style documentation or scripts I should look at? --=20 Eduardo