From 719f7bebb022910c5fd5cac49a714deb63bb1115 Mon Sep 17 00:00:00 2001 From: Felix Held Date: Sat, 17 Dec 2022 01:18:58 +0100 Subject: device/oprom/yabel/io: use __fallthrough instead of comment Unlike gcc, a clang build will fail when only a comment is used to indicate that the fallthough is intended. To fix the clang build, use __fallthrough instead. This will fix the build errors introduced by commit f45c7671d9ed ("Set x86_64 as supported architecture for clang") that enabled clang builds for a case that uses yabel to run the VBIOS. Signed-off-by: Felix Held Change-Id: I4ed337025adeb833f352d198fc0f13b5e1c209c4 Reviewed-on: https://review.coreboot.org/c/coreboot/+/70889 Reviewed-by: Matt DeVillier Reviewed-by: Martin Roth Reviewed-by: Matt DeVillier Tested-by: build bot (Jenkins) Reviewed-by: Elyes Haouas Reviewed-by: Fred Reitberger Reviewed-by: Felix Singer --- src/device/oprom/yabel/io.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/device/oprom/yabel') diff --git a/src/device/oprom/yabel/io.c b/src/device/oprom/yabel/io.c index 2a4e6f86fd..ed8db1a6a0 100644 --- a/src/device/oprom/yabel/io.c +++ b/src/device/oprom/yabel/io.c @@ -184,7 +184,7 @@ my_inb(X86EMU_pioAddr addr) X86EMU_trace_on(); } M.x86.debug &= ~DEBUG_DECODE_NOPRINT_F; - // fall-through + __fallthrough; default: DEBUG_PRINTF_IO ("%s(%04x) reading from bios_device.io_buffer\n", -- cgit v1.2.3