Received: by 2002:a05:6a10:c7d3:0:0:0:0 with SMTP id h19csp325670pxy; Sat, 14 Aug 2021 08:02:58 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwxBAI6f/gjKFQEB5k/fNofMbJxsZCcESEVeKy+mBnZqfFxo3gBKVvc0MJft7oGpkJNvulY X-Received: by 2002:a05:6602:20d2:: with SMTP id 18mr5889522ioz.85.1628953377933; Sat, 14 Aug 2021 08:02:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628953377; cv=none; d=google.com; s=arc-20160816; b=E214sxf/PaAdpdv5tw31787iJ3/WPtSPJnMm4dKYYTXj6K8CFRHVCvanlpJBH/wtKq zmH5CQn8Gt316pw28hSezU8f2oaWEoN5nJfEQZDYMGayzrEiJzKlWK8lCeWGMa31AOiP KnAUbp4ijYNSJCvTrXmXp6dJ84FHYmKw+UgpkQFsJigLFlnNPdJHevASbKZbIHWhHMYs 1Q5Ag0lSBnbytxAOnOZj/Q5cORlJ6URnjB/61sMqAIEko1WOHPQyIaOjfGT9+E4J1SVj 3etFwib9etUO+wAJ1r7FIH/4BHeElVX4ArDwDMkm3BkVTHMkZxOuuG5OiPzNUOfABbEI 0Rbw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=t2sWSw/NwWyv0Vuuo9D2TB5ymYd0ed5Q4oDDKYqSwqA=; b=wTOLoqv7UFJsC8Dq/S8I9m1t6ziO4V1uXm5Y8XwvJ5fWhQzsnW6ftcFtSQLzeziE4L Ga7f9nMe1YBbFWTacqsYWXhDJggRTb35oa55f4tQB3kRsQLNlSqy//B0cYbhsPPGOJRb MsxjF7+kYisb4mDJTpTkruN69pAxSVI2abizr0Nn3gtHhlJ9JIFrgxjIxVcYjD6zpBbs dsvTMO+WmT9uXpu/k/hoBVWpAnpnAZYVyBI5jvb8zDiS6A4p9h/iyT9dQgBKBUbwWWtz JEp9d/fGauIYA0r2ND7FVvs+EPDuEcepNQTo4t6YGcGNsdY+S6yf9j7bdO5f4+vmsKs8 LQ7A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id e128si5671810jac.31.2021.08.14.08.02.46; Sat, 14 Aug 2021 08:02:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238697AbhHNO7t (ORCPT + 99 others); Sat, 14 Aug 2021 10:59:49 -0400 Received: from zeniv-ca.linux.org.uk ([142.44.231.140]:36994 "EHLO zeniv-ca.linux.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235123AbhHNO7t (ORCPT ); Sat, 14 Aug 2021 10:59:49 -0400 Received: from viro by zeniv-ca.linux.org.uk with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1mEv5u-00BilX-4v; Sat, 14 Aug 2021 14:57:06 +0000 Date: Sat, 14 Aug 2021 14:57:06 +0000 From: Al Viro To: Leon Romanovsky Cc: Christophe JAILLET , Dan Carpenter , Russell King - ARM Linux admin , Joe Perches , Dwaipayan Ray , Andy Whitcroft , Lukas Bulwahn , linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org, Julia Lawall Subject: Re: [PATCH] checkpatch: prefer = {} initializations to = {0} Message-ID: References: <20210805104353.GD26417@kili> <1b94e688-a070-998a-3014-96bcbaed4cae@wanadoo.fr> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: Al Viro Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Aug 14, 2021 at 05:38:27PM +0300, Leon Romanovsky wrote: > There are number of reasons why you didn't notice any difference. > 1. {} is GCC extension > 2. {} was adopted in latest C standards, so need to check which one GCC 10 > is using by default. > 3. Main difference will be in padding - {0} will set to zero fields but > won't touch padding, while {} will zero everything. References on (3), please?