diff options
author | Felix Held <felix-coreboot@felixheld.de> | 2022-12-17 01:18:58 +0100 |
---|---|---|
committer | Felix Singer <felixsinger@posteo.net> | 2022-12-17 16:45:44 +0000 |
commit | 719f7bebb022910c5fd5cac49a714deb63bb1115 (patch) | |
tree | 55778b51bbd1adbaf8cfc810731a44c6fdd6d477 /src/device | |
parent | 816919b3c8886243111ac636b5371e37f90b7531 (diff) |
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 <felix-coreboot@felixheld.de>
Change-Id: I4ed337025adeb833f352d198fc0f13b5e1c209c4
Reviewed-on: https://review.coreboot.org/c/coreboot/+/70889
Reviewed-by: Matt DeVillier <matt.devillier@amd.corp-partner.google.com>
Reviewed-by: Martin Roth <martin.roth@amd.corp-partner.google.com>
Reviewed-by: Matt DeVillier <matt.devillier@gmail.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Elyes Haouas <ehaouas@noos.fr>
Reviewed-by: Fred Reitberger <reitbergerfred@gmail.com>
Reviewed-by: Felix Singer <felixsinger@posteo.net>
Diffstat (limited to 'src/device')
-rw-r--r-- | src/device/oprom/yabel/io.c | 2 |
1 files changed, 1 insertions, 1 deletions
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", |