Received: from eggs.gnu.org ([2001:4830:134:3::10]:60792) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WCIBV-0005g3-4f for qemu-devel@nongnu.org; Sat, 08 Feb 2014 19:23:50 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WCIBQ-0000R6-MC for qemu-devel@nongnu.org; Sat, 08 Feb 2014 19:23:45 -0500 Received: from mail-la0-f46.google.com ([209.85.215.46]:55570) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WCIBQ-0000R2-FA for qemu-devel@nongnu.org; Sat, 08 Feb 2014 19:23:40 -0500 Received: by mail-la0-f46.google.com with SMTP id b8so3731989lan.19 for ; Sat, 08 Feb 2014 16:23:39 -0800 (PST) MIME-Version: 1.0 In-Reply-To: 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> From: Peter Maydell Date: Sun, 9 Feb 2014 00:23:19 +0000 Message-ID: Content-Type: text/plain; charset=UTF-8 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: Paolo Bonzini Cc: =?UTF-8?Q?Andreas_F=C3=A4rber?= , Eduardo Habkost , QEMU Developers On 9 February 2014 00:10, Peter Maydell wrote: > On 8 February 2014 23:33, Paolo Bonzini wrote: >> Il 08/02/2014 18:28, Andreas F=C3=A4rber ha scritto: >>> Since when is it OK to declare variables in the middle of the block? > >> When the code looks better, it is OK since always: checkpatch.pl doesn't >> complain and -Wdeclaration-after-statement is not added to the compiler >> flags. > > Huh? checkpatch is notoriously not a reliable guide, and we've had > the "declarations at start of block" rule since forever. FWIW, we have just 39 files[*] which fail to follow the "declarations at start of block" rule out of 2566, which is pretty good compliance for a coding style rule which isn't enforced by technical means (I expect it's much better than we achieve for "no hard tabs" or "braces on all if statement arms", for instance). [*] as tested by a compile with -Wdeclaration-after-statement, so slightly undercounting but not I think seriously. thanks -- PMM