Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp5116248pxb; Mon, 28 Mar 2022 08:09:48 -0700 (PDT) X-Google-Smtp-Source: ABdhPJze9chXriur2SzYu3zdmHXA+r4slxwU1ifgcBfC6z/zZllHTGZbgRMqYQppy5zef/9bEHlF X-Received: by 2002:a17:90b:4c84:b0:1c7:7769:3cc7 with SMTP id my4-20020a17090b4c8400b001c777693cc7mr36718564pjb.73.1648480188638; Mon, 28 Mar 2022 08:09:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1648480188; cv=none; d=google.com; s=arc-20160816; b=jzpgAertRBrqZynuytTtJtZKMAvOpVhgSeWMSk0EcejKlFmXN3/H4YvE4HhYBjz5Iv 7WroFarNy1swp/roaZNwQXATv7H+PKGmZlX4XXA7fwjiNKCo0BLDkrcgpZk2iTrAjAiP JsDBw/WGTTVwa0WGtt62V6zgrpI0N5/y2Y/7DV5aSJ1Hh4jwh5U/fyn8nwhhceQJzNqW fsMerQ5OmdAKb1qykStndoFVZ2AZKmC3R/5ZjGbUlQEwNA1Zm/DA7+WgqDoAgOkKQWr/ NFbqvSuxZIVyzcKEMoTv+xKqs0Qo/DGuCBSip0lBsQwNIztgJ/k3QPYY/sYs4DzFTC+6 0kCw== 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-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=X9xolOBuBIa4R0vTxvv45W6wXO+HEw6pqnTDDTRpzds=; b=NWF6HZG/itW0rDrAbMkgqouRLREzTK6R3/mca3yQJ8cX5VLMwaJ14oYA47Z5uuG55e O4erNk5mPN9Widiq/JqP6ibHoSvBP3bIu7qgu71oof89iQ1h4oTUXW4Om7UV+q4RGZ8L WgIaTYd+hsSyzuzihHEqpJEJSIgVqeA0RtQMx2FUz6TfHnWWc5MH+K3/xMzIoSZ5K50a fLWD+22V2Bb/kP/k/H9MdoyS+h0PEYaYZ/5GtlpKIP/dyHZ8nvI8bBg4Y9068nnjIAKn mCco31C5y50wz2QddbAjvZecIgQzlWg3Syr0rMnXjV+0OUaZFQ/2ouFnLCmXF61SNlOd EICw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=oLet0tAN; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w15-20020a63934f000000b003816043ee76si13690392pgm.107.2022.03.28.08.09.38; Mon, 28 Mar 2022 08:09:48 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-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=@linaro.org header.s=google header.b=oLet0tAN; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232753AbiC1Njb (ORCPT + 68 others); Mon, 28 Mar 2022 09:39:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53772 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243267AbiC1Nja (ORCPT ); Mon, 28 Mar 2022 09:39:30 -0400 Received: from mail-wm1-x32a.google.com (mail-wm1-x32a.google.com [IPv6:2a00:1450:4864:20::32a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5C1E3E000 for ; Mon, 28 Mar 2022 06:37:48 -0700 (PDT) Received: by mail-wm1-x32a.google.com with SMTP id r7so8405312wmq.2 for ; Mon, 28 Mar 2022 06:37:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to; bh=X9xolOBuBIa4R0vTxvv45W6wXO+HEw6pqnTDDTRpzds=; b=oLet0tANev/NadSGG5WygX6a9PHbV48R0OGVzTFAK66vgaFAFv+6FEqLK0G3/3ySP4 b/d5orpZAPqedkx1AD7rtFEyiwXnPvIQaUt3cb5bANbLFAp1PP9b3VM5x83B+LE5bpZX Mqfb0YdcPylnkm3GgwX0FkcVIyeIpzrHW1Ztm1YCPJWhtEm6b0R7UxTKqyLkp9X86tDh RTML6mUvAc9b6cJ7rPhuh5vgMUf407AdVPTSrPRQBy/Qnb76rcY+JlipO/P3K/LBqKBX q692XNYucimXULVF/VqoaavfK2r3MAlFNO2DaqNE8kM6/YoLSPlUhjDCWMHA+GVsdYK9 BlPA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to; bh=X9xolOBuBIa4R0vTxvv45W6wXO+HEw6pqnTDDTRpzds=; b=egXqpqWcD3kGKhZGeon6ut05IHyAgxrcoXBUrJEbmj90KTioBPHoM+5fjsho8+qxTS WErwEjuwxjIHtQShzU1oXFqX4kxAoVHuiy5NwPxQKqOHq5dmFnw2k5cPwv7iDohCn2QR cpYzv2TnCpEs1wh+6gaszzeyw1PcW/6FoHC6rf26pMwYewFtJnjXHELOXrqEQxspFQnw LqKehqCJ7xJbvB94VVRitjb0L6fztaSBB63G+AEo5dTlTUWx7I0GahoYWnvNrl4ac0I3 jTfEKotZDY+QrBLOw0jz2v0OI6Rf9LWyfQfBOS9WM7J/z+2pAnF5RIsnHaGBKMj4vB/I Iytg== X-Gm-Message-State: AOAM5324uEM2o9jb/5nMM+tZyx2gGpqq911hwHp0LomMnGOw/786CGvg oflZxHz3rzjTkBgbs2NTxkvgqw== X-Received: by 2002:a05:600c:a08:b0:38c:93c8:36e9 with SMTP id z8-20020a05600c0a0800b0038c93c836e9mr36701865wmp.97.1648474666793; Mon, 28 Mar 2022 06:37:46 -0700 (PDT) Received: from maple.lan (cpc141216-aztw34-2-0-cust174.18-1.cable.virginm.net. [80.7.220.175]) by smtp.gmail.com with ESMTPSA id p14-20020a5d59ae000000b00203dcc87d39sm19694611wrr.54.2022.03.28.06.37.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 28 Mar 2022 06:37:46 -0700 (PDT) Date: Mon, 28 Mar 2022 14:37:43 +0100 From: Daniel Thompson To: Benjamin =?utf-8?B?U3TDvHJ6?= Cc: andrew@lunn.ch, sebastian.hesselbarth@gmail.com, gregory.clement@bootlin.com, linux@armlinux.org.uk, linux@simtec.co.uk, krzk@kernel.org, alim.akhtar@samsung.com, tglx@linutronix.de, mingo@redhat.com, bp@alien8.de, dave.hansen@linux.intel.com, hpa@zytor.com, robert.moore@intel.com, rafael.j.wysocki@intel.com, lenb@kernel.org, 3chas3@gmail.com, laforge@gnumonks.org, arnd@arndb.de, gregkh@linuxfoundation.org, mchehab@kernel.org, tony.luck@intel.com, james.morse@arm.com, rric@kernel.org, linus.walleij@linaro.org, brgl@bgdev.pl, mike.marciniszyn@cornelisnetworks.com, dennis.dalessandro@cornelisnetworks.com, jgg@ziepe.ca, pali@kernel.org, dmitry.torokhov@gmail.com, isdn@linux-pingi.de, benh@kernel.crashing.org, fbarrat@linux.ibm.com, ajd@linux.ibm.com, davem@davemloft.net, kuba@kernel.org, pabeni@redhat.com, nico@fluxnic.net, loic.poulain@linaro.org, kvalo@kernel.org, pkshih@realtek.com, bhelgaas@google.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-samsung-soc@vger.kernel.org, linux-ia64@vger.kernel.org, linux-acpi@vger.kernel.org, devel@acpica.org, linux-atm-general@lists.sourceforge.net, netdev@vger.kernel.org, linux-edac@vger.kernel.org, linux-gpio@vger.kernel.org, linux-rdma@vger.kernel.org, linux-input@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-media@vger.kernel.org, wcn36xx@lists.infradead.org, linux-wireless@vger.kernel.org, linux-pci@vger.kernel.org Subject: Re: [PATCH 02/22] s3c: Replace comments with C99 initializers Message-ID: <20220328133743.xhdzmprlc7a6jxxy@maple.lan> References: <20220326165909.506926-1-benni@stuerz.xyz> <20220326165909.506926-2-benni@stuerz.xyz> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20220326165909.506926-2-benni@stuerz.xyz> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable 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-wireless@vger.kernel.org On Sat, Mar 26, 2022 at 05:58:49PM +0100, Benjamin St?rz wrote: > This replaces comments with C99's designated > initializers because the kernel supports them now. I'm a bit puzzled by "because the kernel supports them now". Designated initializers are not purely a C99 feature... it is also a GNU C extension to C89. This language feature has been used by the kernel for a very long time (well over a decade). On other words it would be much more effective to advocate for the change by saying "because the code is clearer and easier to read" rather than "because we can". > Signed-off-by: Benjamin St?rz > --- > arch/arm/mach-s3c/bast-irq.c | 32 ++++++++++++++++---------------- > 1 file changed, 16 insertions(+), 16 deletions(-) > > diff --git a/arch/arm/mach-s3c/bast-irq.c b/arch/arm/mach-s3c/bast-irq.c > index d299f124e6dc..bd5471f9973b 100644 > --- a/arch/arm/mach-s3c/bast-irq.c > +++ b/arch/arm/mach-s3c/bast-irq.c > @@ -29,22 +29,22 @@ > * the irq is not implemented > */ > static const unsigned char bast_pc104_irqmasks[] = { > - 0, /* 0 */ > - 0, /* 1 */ > - 0, /* 2 */ > - 1, /* 3 */ > - 0, /* 4 */ > - 2, /* 5 */ > - 0, /* 6 */ > - 4, /* 7 */ > - 0, /* 8 */ > - 0, /* 9 */ > - 8, /* 10 */ > - 0, /* 11 */ > - 0, /* 12 */ > - 0, /* 13 */ > - 0, /* 14 */ > - 0, /* 15 */ > + [0] = 0, > + [1] = 0, > + [2] = 0, > + [3] = 1, > + [4] = 0, > + [5] = 2, > + [6] = 0, > + [7] = 4, > + [8] = 0, > + [9] = 0, > + [10] = 8, > + [11] = 0, > + [12] = 0, > + [13] = 0, > + [14] = 0, > + [15] = 0, Shouldn't this just be as follows (in order to match bast_pc104_irqs)? +static const unsigned char bast_pc104_irqmasks[16] = { + [3] = 1, + [5] = 2, + [7] = 4, + [10] = 8, }; static const unsigned char bast_pc104_irqs[] = { 3, 5, 7, 10 }; Daniel.