Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp2043082rwb; Thu, 27 Jul 2023 00:46:25 -0700 (PDT) X-Google-Smtp-Source: APBJJlHQGk6yIXFC3Durg8+dxuOYZ+pzz8Sn+RGkoFrRaZ3zSQhXGcI3qUKUK+rdxpAEjNnAvzfJ X-Received: by 2002:a17:907:9051:b0:993:eef2:5d5d with SMTP id az17-20020a170907905100b00993eef25d5dmr1224710ejc.27.1690443984958; Thu, 27 Jul 2023 00:46:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690443984; cv=none; d=google.com; s=arc-20160816; b=RMW457FfKj2t8tYn92Rj3CHsXqGvrbi2BI8ktT8OMbpcYAx3pG+BBPAeKZPq2gFtG3 3ge9yNS+VscnSfoMFb5/zcVHrpirlMhgD9HDOP9+j1PF1h+FNscl9NeUrwPSwMJ80VwA ugsEEHzzVBWR7MOdf2Ii1M7M5tka4q1pA7etD5KoIlQoq62hRDA2yAVpKt2FOWP1gBSz VNp32566p/nBiTDVzdJWahzzHE8vCjMOltcMtfqkWTIEB3mMWpa6PLtLVxBP9CU4asSt R8TEyQTFZD5lNN8eZmGgc1zGQnrj41bZqklG10e0SXFAlIS7TDTa6vvUOMfrJ0iPieG/ yEcA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature :dkim-signature; bh=at8qZJllNklpGVvIglzagPpypbwOZ001CdqDVCWZu6k=; fh=caqX4evmCQVTnVmr4vJlubYPsKkqB5/1GVy+YWe//G0=; b=J3t6ljlvph550N0sxDIdKAQK4sB35AjRvKhhpSWv2Yl16FsmS1ijxk6JpZ9/2lDqQm HJsq0nYKnfdXzJEZIHXpkC+269eJjN5XPTZI+OwwZWigwh6Z294LTuPnr44eDY2IpLjN 2TJ8VSLjM0czq2xjSEroP2ESgLGPCopabO2tRk63ui7Ok+FyEXWHqQLUD1Yhcp0lsHel xFV5Dwkog3csJeEyWmop25/IHUTbWT/nBprnqrqhoWBu74P/qNEZXpSJEGTTdOLfOAJR 5ePu0Vb8xRGOd9SJCEVdsdit7ZvfeETeAE0XDtC1GPHUhkXEXsct32OgWAHvooFCozew 01Pw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=w7UDgFoQ; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519 header.b=y3J02R5V; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a13-20020a170906684d00b009886470de61si623902ejs.857.2023.07.27.00.46.00; Thu, 27 Jul 2023 00:46:24 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=w7UDgFoQ; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519 header.b=y3J02R5V; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233238AbjG0HTu (ORCPT + 99 others); Thu, 27 Jul 2023 03:19:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36212 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232131AbjG0HT0 (ORCPT ); Thu, 27 Jul 2023 03:19:26 -0400 Received: from smtp-out1.suse.de (smtp-out1.suse.de [IPv6:2001:67c:2178:6::1c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E254459FA; Thu, 27 Jul 2023 00:12:40 -0700 (PDT) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id F137921A5E; Thu, 27 Jul 2023 07:11:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1690441892; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=at8qZJllNklpGVvIglzagPpypbwOZ001CdqDVCWZu6k=; b=w7UDgFoQSOafNyVdsVyqv/2IIJgCUEPKxyO6lVBGxD2hkzElIAWs9IXUBr2sCFROV55N9N p11HN0kvLet0EapcAlhM56qUtMNDb4h4afvc0mACYm6uo1q665exjOuQuDHM+l5c3fnoEu ISIOteqUwr9dXDRLGhd9m3iUlXNIx/I= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1690441892; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=at8qZJllNklpGVvIglzagPpypbwOZ001CdqDVCWZu6k=; b=y3J02R5VwGsZCFslJw1lvKSEl5FQRLBcjcU3HlZVi0UhXYU+IAvHBxUtrKec8eIz1S5/0U cqaGUlNAgZ+wyWCg== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id E2C7A138E5; Thu, 27 Jul 2023 07:11:32 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id L5vVNqQYwmSeKgAAMHmgww (envelope-from ); Thu, 27 Jul 2023 07:11:32 +0000 Date: Thu, 27 Jul 2023 09:11:32 +0200 From: Daniel Wagner To: Bart Van Assche Cc: linux-nvme@lists.infradead.org, linux-kernel@vger.kernel.org, linux-block@vger.kernel.org, Chaitanya Kulkarni , Shin'ichiro Kawasaki , Max Gurtovoy , Hannes Reinecke , Sagi Grimberg , James Smart Subject: Re: [PATCH blktests v1 01/11] nvme/{003,004,005,013,046,049}: Group all variables declarations Message-ID: References: <20230726124644.12619-1-dwagner@suse.de> <20230726124644.12619-2-dwagner@suse.de> <7e4f6c51-43f4-c039-07bc-6724748a1d3e@acm.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <7e4f6c51-43f4-c039-07bc-6724748a1d3e@acm.org> X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jul 26, 2023 at 07:54:24AM -0700, Bart Van Assche wrote: > On 7/26/23 05:46, Daniel Wagner wrote: > > Group all variable declarations together at the beginning of the > > function. > > An explanation of why this change has been proposed is missing from the > patch description. Sure, I'll add one. The coding style to declare all local variables at the beginning of the function. > I think the current style, with variable declarations occurring just before > the first use of a variable, is on purpose. I like that style. The majority of functions declare variables at the beginning of the functions. As you can see these are only a handful of declerations which do not adhere to the coding style.