Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp5312331pxb; Mon, 28 Mar 2022 10:45:55 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzBmnn2FR7HFa4PqT4/dYM0kSA9+h3eLMqH4v6tNtsP0Ceulu9ibI1ni3nsu6N/fgmhNkcE X-Received: by 2002:aa7:888b:0:b0:4fb:10e1:8983 with SMTP id z11-20020aa7888b000000b004fb10e18983mr17287405pfe.62.1648489555125; Mon, 28 Mar 2022 10:45:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1648489555; cv=none; d=google.com; s=arc-20160816; b=TBEVhSiytxtV6WWAhtPmrNiwQ0r1kw60TWXJ1E7KXSxUa6sKv42JViLrMQX0XHdyus i0AJjOtvP/7PzuxGE2Ph/dzIQvr4c9b5PdUtokXhi6Hw1klgFoGBjdRPw6sZVzyqIdmX KLHOjh9XktkQ6+dj71t5KmI96JSJIcn9te9hyUm5QufB2pObxXuxeESg10hxzesJWOUV K0yj3dudspnRVDzq0HC18GhngZogC+hGzFLL4qk1xFg5O+NROw2QUbmdECXMrf3qI5/W 8qw0aq/JYfN5ZEblrsym+kG9TQjluD7NcxN0bGv3mPj6/NBlfX7lUqGxEQhl1x7uIbPu /dNg== 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=tpXnN0VHB6iUEh42xZkIfKz+h2Jc2+CMtnusz63fzes=; b=unIWAcE9GMCzWHctf3HwJZPXLYvHEp21GMgifWmulGmkoLBdFHn8v4ET0cUKQsxkFb RzjBddQN5PfvC4tIBTEl3eWbqoYyx/TJWJabNYzFLPGbk9Jl4t45J6VVJVQ0BcEHEibY 1sN9d/VZjDYpfMmluP1GYEnViKsyzxfwjIr90OGB1ltLI+M4LDgkgR2d5LY5yGtE83vY WXqcYDMP+udYl+BzGTdTdtN91kOE901iVg9Z/CiCpHiuBwMPQ3r6/2jj5B9QTwYmke5j TgxLwOgfedZcDKNKssxvcVNUPWuHc90rUFki9HrbZoVyLo5QKf/RDqiuvRVqV4CYJtHu +eOw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=YPALESBK; 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 h10-20020a63574a000000b003816043ee1csi14048997pgm.17.2022.03.28.10.45.39; Mon, 28 Mar 2022 10:45:55 -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=YPALESBK; 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 S243056AbiC1NTU (ORCPT + 68 others); Mon, 28 Mar 2022 09:19:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58322 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233955AbiC1NTT (ORCPT ); Mon, 28 Mar 2022 09:19:19 -0400 Received: from mail-wr1-x42f.google.com (mail-wr1-x42f.google.com [IPv6:2a00:1450:4864:20::42f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E45E75DE4B for ; Mon, 28 Mar 2022 06:17:38 -0700 (PDT) Received: by mail-wr1-x42f.google.com with SMTP id a1so20339632wrh.10 for ; Mon, 28 Mar 2022 06:17:38 -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=tpXnN0VHB6iUEh42xZkIfKz+h2Jc2+CMtnusz63fzes=; b=YPALESBKVO/yFKv+lXwz8leucUW/QtFuB0hl8JHZCqjO5xu4w5wIoQ5+pwQ+QRVXb9 3B2L4bQYw0N2jb7N56M5R7JWYxgho8xdRwRmv4vnJodlkTGVC2bN4KorM9+VarCUvhfz rq7UuF1pwztE+IwdlG9cbNz+sqpgQ/NI9IDLUETHwbQomOpQYmH+MNVfGvC/MeWvzE8P lVgleUzejo6opEuHS9sTuvN1v42e4fq5Sl4PYl0tj9Ag7RHSYKvKr2OYJJ4Wgi/PE7G+ XZp5RIOP+vUQXZXu/Ec0fSds9Y00Tni8973wJOMtSetYycYYe8h/qByU8h8Ok03tSfRP ibtg== 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=tpXnN0VHB6iUEh42xZkIfKz+h2Jc2+CMtnusz63fzes=; b=1fW0ER+VBQTX1aTpVRZAt0psSt9sv0aHuBAGRR3IZH8AOvicwHGeauTD3y7NHW06BY sDHq25xL9czKw3LOrNThwKPy31vFCsi3iJL2wj5BiaBewbBv2+62fHJdMrO0PGYMiGxL mVaQ8kWN66h/yNe4qnxwKZg9kdZNJDSHSVhUjuIm4l9rj/++S6+H02Ri071gdM61tLoW c1PJBQatshLXDjPfH4w3SpU4V8QF/5mxgEIdp15XdDCv4IVvwb831xLqqxT9QjH6dzn+ yFrq8vfSvEPZ6sUdLHgsYxq7bPWAZgv1qr1rgRXb3uyKXz2NyUM7H8pi7a5KDZU3HD/A dB/g== X-Gm-Message-State: AOAM5310J4h6jFRIMVg/UjwzMo8BGOrUEn8Z0V4LFnf2VtJd3UG9V1vs K1SfRjQiseLaqEcaNwv1Rxx0+g== X-Received: by 2002:a05:6000:1ac8:b0:204:2917:acd4 with SMTP id i8-20020a0560001ac800b002042917acd4mr23551818wry.31.1648473457317; Mon, 28 Mar 2022 06:17:37 -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 j7-20020a05600c410700b0038c72ef3f15sm15290807wmi.38.2022.03.28.06.17.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 28 Mar 2022 06:17:36 -0700 (PDT) Date: Mon, 28 Mar 2022 14:17:33 +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 01/22] orion5x: Replace comments with C99 initializers Message-ID: <20220328131733.akhkwnldtldp7nyn@maple.lan> References: <20220326165909.506926-1-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-1-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=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-wireless@vger.kernel.org On Sat, Mar 26, 2022 at 05:58:48PM +0100, Benjamin St?rz wrote: > This replaces comments with C99's designated > initializers because the kernel supports them now. This commit description seems wrong to me. This patch doesn't include use C99 designated initializers (or AFAICT any other language feature that has recently been enabled in the kernel). The changes here are just plain constant-expressions in enumeration lists and were included in C89/C90. Daniel. > > Signed-off-by: Benjamin St?rz > --- > arch/arm/mach-orion5x/dns323-setup.c | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) > > diff --git a/arch/arm/mach-orion5x/dns323-setup.c b/arch/arm/mach-orion5x/dns323-setup.c > index 87cb47220e82..d762248c6512 100644 > --- a/arch/arm/mach-orion5x/dns323-setup.c > +++ b/arch/arm/mach-orion5x/dns323-setup.c > @@ -61,9 +61,9 @@ > > /* Exposed to userspace, do not change */ > enum { > - DNS323_REV_A1, /* 0 */ > - DNS323_REV_B1, /* 1 */ > - DNS323_REV_C1, /* 2 */ > + DNS323_REV_A1 = 0, > + DNS323_REV_B1 = 1, > + DNS323_REV_C1 = 2, > }; > > > -- > 2.35.1 >