[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <f0e64930fe514c59ff2354b1c17f1341e70366c6.1605896060.git.gustavoars@kernel.org>
Date: Fri, 20 Nov 2020 12:40:21 -0600
From: "Gustavo A. R. Silva" <gustavoars@...nel.org>
To: Richard Weinberger <richard@....at>,
Miquel Raynal <miquel.raynal@...tlin.com>,
Vignesh Raghavendra <vigneshr@...com>
Cc: linux-mtd@...ts.infradead.org, linux-kernel@...r.kernel.org,
linux-hardening@...r.kernel.org,
"Gustavo A. R. Silva" <gustavoars@...nel.org>
Subject: [PATCH 132/141] ubi: Fix fall-through warnings for Clang
In preparation to enable -Wimplicit-fallthrough for Clang, fix a warning
by explicitly adding a fallthrough pseudo-keyword instead of letting the
code fall through to the next case.
Link: https://github.com/KSPP/linux/issues/115
Signed-off-by: Gustavo A. R. Silva <gustavoars@...nel.org>
---
drivers/mtd/ubi/build.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/mtd/ubi/build.c b/drivers/mtd/ubi/build.c
index e85b04e9716b..75b6e98db775 100644
--- a/drivers/mtd/ubi/build.c
+++ b/drivers/mtd/ubi/build.c
@@ -1353,6 +1353,7 @@ static int bytes_str_to_int(const char *str)
result *= 1024;
if (endp[1] == 'i' && endp[2] == 'B')
endp += 2;
+ fallthrough;
case '\0':
break;
default:
--
2.27.0
Powered by blists - more mailing lists