[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20220326165909.506926-8-benni@stuerz.xyz>
Date: Sat, 26 Mar 2022 17:58:55 +0100
From: Benjamin Stürz <benni@...erz.xyz>
To: andrew@...n.ch
Cc: sebastian.hesselbarth@...il.com, gregory.clement@...tlin.com,
linux@...linux.org.uk, linux@...tec.co.uk, krzk@...nel.org,
alim.akhtar@...sung.com, tglx@...utronix.de, mingo@...hat.com,
bp@...en8.de, dave.hansen@...ux.intel.com, hpa@...or.com,
robert.moore@...el.com, rafael.j.wysocki@...el.com,
lenb@...nel.org, 3chas3@...il.com, laforge@...monks.org,
arnd@...db.de, gregkh@...uxfoundation.org, mchehab@...nel.org,
tony.luck@...el.com, james.morse@....com, rric@...nel.org,
linus.walleij@...aro.org, brgl@...ev.pl,
mike.marciniszyn@...nelisnetworks.com,
dennis.dalessandro@...nelisnetworks.com, jgg@...pe.ca,
pali@...nel.org, dmitry.torokhov@...il.com, isdn@...ux-pingi.de,
benh@...nel.crashing.org, fbarrat@...ux.ibm.com, ajd@...ux.ibm.com,
davem@...emloft.net, kuba@...nel.org, pabeni@...hat.com,
nico@...xnic.net, loic.poulain@...aro.org, kvalo@...nel.org,
pkshih@...ltek.com, bhelgaas@...gle.com,
linux-arm-kernel@...ts.infradead.org, linux-kernel@...r.kernel.org,
linux-samsung-soc@...r.kernel.org, linux-ia64@...r.kernel.org,
linux-acpi@...r.kernel.org, devel@...ica.org,
linux-atm-general@...ts.sourceforge.net, netdev@...r.kernel.org,
linux-edac@...r.kernel.org, linux-gpio@...r.kernel.org,
linux-rdma@...r.kernel.org, linux-input@...r.kernel.org,
linuxppc-dev@...ts.ozlabs.org, linux-media@...r.kernel.org,
wcn36xx@...ts.infradead.org, linux-wireless@...r.kernel.org,
linux-pci@...r.kernel.org,
Benjamin Stürz <benni@...erz.xyz>
Subject: [PATCH 08/22] i5100: Replace comments with C99 initializers
This replaces comments with C99's designated
initializers because the kernel supports them now.
Signed-off-by: Benjamin Stürz <benni@...erz.xyz>
---
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
Powered by blists - more mailing lists