Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp4487618pxb; Sun, 27 Mar 2022 20:15:23 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwDelIaMi+ZZZmc69+0ZwCZ9CsyexJl4RFkawznNaqiZYK68xgNHQ3nlRN4/3YlZMYGgj0M X-Received: by 2002:a17:906:7056:b0:6d6:dd99:f2a4 with SMTP id r22-20020a170906705600b006d6dd99f2a4mr24449077ejj.43.1648437323157; Sun, 27 Mar 2022 20:15:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1648437323; cv=none; d=google.com; s=arc-20160816; b=LuVK4CL5ZqbOXLoEPQHSZqXmV2kOQAn8mE+ekepMP5smWmKYHDT/c+DPqScs3PCOoz X7TjDm1id5N/JRfJlYehth3PVS9Nlkv3rtRqcMUQ7fs+e496/0EoyX4AWu9bpE5X+cdq GokOPjlBJSYe0hqvuFdzrg/eOrOn2k69iwomF081/+MvySZxFlJj+jzoZvFMdZinoR7k fwPRpvIBP4GrA37Oo9k959cUu+7AQcycJanp7GOMHrkDtEFPJyYfhNG5tqKBXDkDPDhm 6fphoRRjPuC2alXRTPY9bStvMQ2v2zLP+IxvxzrO5eY/IzCclspY8sUnv/oJIkvpKXMX H5rQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature:dkim-signature; bh=FiADopAHu1HbFUm5sDi9beVzsYLLZi4iR2Jj37dVLEo=; b=ckO0oqlCjlg+CWW1lvN0GmlFYgiXq8wzQp2FccIxvEaK+t0oL07BgbZPe4N5CQbgfb oOOhUoZbT7Z0heAWlHhBLpTCekKgX2j5T5lKlNNEkI0zLu7c2oUWCRAy1hrO61U7Rov9 /YeQJ//GhKHXenwzD1Pi/Tik2z0aOe+fLMjZxnaTyoiwJ4tc8v9P5NfwVhIwG6JPIsNI LP7huNOk7lz/LrrOb0rup44wTQVxbWz84dm8ZU4JF3BQo4mx8yIENMDMQdNQ5Mk4lAL+ jwELydhdZ4WqxtslsnTIvRFIFCuobqgmlZozQuRRR06EHOtea0LZawMJRCEh9n8xieed ktCg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@stuerz.xyz header.s=mail header.b=OE6w7EbG; dkim=pass header.i=@stuerz.xyz header.s=mail header.b=Hf7mJJcW; 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=REJECT sp=REJECT dis=NONE) header.from=stuerz.xyz Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f5-20020a170906138500b006df76385bccsi11511956ejc.108.2022.03.27.20.15.02; Sun, 27 Mar 2022 20:15:23 -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=@stuerz.xyz header.s=mail header.b=OE6w7EbG; dkim=pass header.i=@stuerz.xyz header.s=mail header.b=Hf7mJJcW; 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=REJECT sp=REJECT dis=NONE) header.from=stuerz.xyz Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234350AbiCZRK4 (ORCPT + 69 others); Sat, 26 Mar 2022 13:10:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50226 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234045AbiCZRKj (ORCPT ); Sat, 26 Mar 2022 13:10:39 -0400 Received: from stuerz.xyz (unknown [45.77.206.31]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4F2D635865; Sat, 26 Mar 2022 10:08:58 -0700 (PDT) Received: by stuerz.xyz (Postfix, from userid 114) id 321B8FBBA1; Sat, 26 Mar 2022 17:00:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=stuerz.xyz; s=mail; t=1648314016; bh=HOFmAYiVvnT7rSVfobZmsnPlgQ5nBBe17TNp3HtbNU0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=OE6w7EbGz4UZqMrSmnQO9S4DWG3C+A+XGWmHj1gGNyXwzuCg2tgyFaWJe3ge1xrGo ZklfkmLdhXZh1w7uCDZZYSk9u3CuqbZNayJumKTNAXg/GONO7RxnGJHUR037ruIdBS Fp2smpwss0tQxWIm5ODbwoyQx3wuUvnfU2SPBSOKVx496KvRNHoYqttGuF2H1XAiNF QgJ3pcxWWxo4xcwTRijChip3hD3SvUJ9xLQzFvcn1z9+nVDGjwLoeTSUfSgEOjjdMw I7qtII+gHEQFTrCQkdsK2RDYSiDDNbqp3GyqVLl6XkR0RjliCTrClhr7sk0bdeE9G+ pKtdwiXsaftmw== Received: from benni-fedora.. (unknown [IPv6:2a02:8109:a100:1a48:ff0:ef2f:d4da:17d8]) by stuerz.xyz (Postfix) with ESMTPSA id 20D94FB7EA; Sat, 26 Mar 2022 17:00:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=stuerz.xyz; s=mail; t=1648314013; bh=HOFmAYiVvnT7rSVfobZmsnPlgQ5nBBe17TNp3HtbNU0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Hf7mJJcWBmIj3C+XCxyzFO7S9C0oUaIl8hxKEGBu6X8vw2n1pWSpj6iB15/DP+6Lp 3QX2TjmaymPMgIhJcqwVkwY6dEsEyphIorKi1wt0xa4x6MJ6oAZB59LvQ3nuveeFu0 348YW/tdR5UvOfRwGWcPa9XVwbxu+xibpp/4thWzzXOlH3zZnJHzTtHyLYycZzhdQ3 Slg6rVaVkmUpHlV6SbMwW2oDlerJ1InqL387Q5Q/hQQJH1awaV4a52wpm8TuxMZYnL WGg8OJF9bO4XtyqoNzz5xIgxnsqwooQQF0Nsc2pHaLUBhYt9zf8O+zC8ZiS2I6nTZh bsWtkEHhv2HFw== From: =?UTF-8?q?Benjamin=20St=C3=BCrz?= To: andrew@lunn.ch Cc: 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, =?UTF-8?q?Benjamin=20St=C3=BCrz?= Subject: [PATCH 08/22] i5100: Replace comments with C99 initializers Date: Sat, 26 Mar 2022 17:58:55 +0100 Message-Id: <20220326165909.506926-8-benni@stuerz.xyz> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220326165909.506926-1-benni@stuerz.xyz> References: <20220326165909.506926-1-benni@stuerz.xyz> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=1.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FROM_SUSPICIOUS_NTLD, PDS_OTHER_BAD_TLD,RDNS_DYNAMIC,SPF_HELO_PASS,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Level: * 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 This replaces comments with C99's designated initializers because the kernel supports them now. Signed-off-by: Benjamin Stürz --- drivers/edac/i5100_edac.c | 44 +++++++++++++++++++-------------------- 1 file changed, 22 insertions(+), 22 deletions(-) diff --git a/drivers/edac/i5100_edac.c b/drivers/edac/i5100_edac.c index 324a46b8479b..5992f0ee5f28 100644 --- a/drivers/edac/i5100_edac.c +++ b/drivers/edac/i5100_edac.c @@ -379,28 +379,28 @@ static int i5100_rank_to_slot(const struct mem_ctl_info *mci, static const char *i5100_err_msg(unsigned err) { static const char *merrs[] = { - "unknown", /* 0 */ - "uncorrectable data ECC on replay", /* 1 */ - "unknown", /* 2 */ - "unknown", /* 3 */ - "aliased uncorrectable demand data ECC", /* 4 */ - "aliased uncorrectable spare-copy data ECC", /* 5 */ - "aliased uncorrectable patrol data ECC", /* 6 */ - "unknown", /* 7 */ - "unknown", /* 8 */ - "unknown", /* 9 */ - "non-aliased uncorrectable demand data ECC", /* 10 */ - "non-aliased uncorrectable spare-copy data ECC", /* 11 */ - "non-aliased uncorrectable patrol data ECC", /* 12 */ - "unknown", /* 13 */ - "correctable demand data ECC", /* 14 */ - "correctable spare-copy data ECC", /* 15 */ - "correctable patrol data ECC", /* 16 */ - "unknown", /* 17 */ - "SPD protocol error", /* 18 */ - "unknown", /* 19 */ - "spare copy initiated", /* 20 */ - "spare copy completed", /* 21 */ + [0] = "unknown", + [1] = "uncorrectable data ECC on replay", + [2] = "unknown", + [3] = "unknown", + [4] = "aliased uncorrectable demand data ECC", + [5] = "aliased uncorrectable spare-copy data ECC", + [6] = "aliased uncorrectable patrol data ECC", + [7] = "unknown", + [8] = "unknown", + [9] = "unknown", + [10] = "non-aliased uncorrectable demand data ECC", + [11] = "non-aliased uncorrectable spare-copy data ECC", + [12] = "non-aliased uncorrectable patrol data ECC", + [13] = "unknown", + [14] = "correctable demand data ECC", + [15] = "correctable spare-copy data ECC", + [16] = "correctable patrol data ECC", + [17] = "unknown", + [18] = "SPD protocol error", + [19] = "unknown", + [20] = "spare copy initiated", + [21] = "spare copy completed", }; unsigned i; -- 2.35.1