Skip to contentSkip to conversation

x86: boot: add a missing fallthrough statement

PATCH New Arnd Bergmann 1 participant 1 message Jul 21, 2021 x86

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 x86: boot: add a missing fallthrough statement

From: Arnd Bergmann <[email protected]>

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=]

---
 arch/x86/boot/printf.c | 1 +
 1 file changed, 1 insertion(+)
arch/x86/boot/printf.c +1 -0
index 1237beeb9540..c0ec1dc355ab 100644
@@ -246,6 +246,7 @@ int vsprintf(char *buf, const char *fmt, va_list args)
 
 		case 'x':
 			flags |= SMALL;
+			fallthrough;
 		case 'X':
 			base = 16;
 			break;
Signature · 1 line
2.29.2