* [PATCH] x86: boot: add a missing fallthrough statement
@ 2021-07-21 15:23 Arnd Bergmann
0 siblings, 0 replies; only message in thread
From: Arnd Bergmann @ 2021-07-21 15:23 UTC (permalink / raw)
To: Thomas Gleixner, Ingo Molnar, Borislav Petkov, x86
Cc: Arnd Bergmann, H. Peter Anvin, linux-kernel
From: Arnd Bergmann <arnd@arndb.de>
This instance seems to have slipped through the mass
conversions to the fallthrough keyword:
arch/x86/boot/printf.c:248:31: error: this statement may fall through [-Werror=implicit-fallthrough=]
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
---
arch/x86/boot/printf.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/arch/x86/boot/printf.c b/arch/x86/boot/printf.c
index 1237beeb9540..c0ec1dc355ab 100644
--- a/arch/x86/boot/printf.c
+++ b/arch/x86/boot/printf.c
@@ -246,6 +246,7 @@ int vsprintf(char *buf, const char *fmt, va_list args)
case 'x':
flags |= SMALL;
+ fallthrough;
case 'X':
base = 16;
break;
--
2.29.2
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2021-07-21 15:23 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-07-21 15:23 [PATCH] x86: boot: add a missing fallthrough statement Arnd Bergmann
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).