From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 26D1CC4338F for ; Sat, 14 Aug 2021 14:59:32 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 05C6C60E9B for ; Sat, 14 Aug 2021 14:59:31 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238703AbhHNO7t (ORCPT ); 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?