From 7f5a52cc63292a6b02dd64dcf0c9795a2dae014d Mon Sep 17 00:00:00 2001 From: Yuchen He Date: Tue, 21 Mar 2023 22:36:20 +0100 Subject: [PATCH] x86/include/registers.h: macros should not use a trailing semicolon Macros should not use a trailing semicolons. Remove those from 'LONG_DOWNTO8' aswell as 'LONG_DOWNTO16' and add them at places where the macros are used. Signed-off-by: Yuchen He Change-Id: I5ba01bc09f9a2d9ecd54014e27ec0a24c7297412 Reviewed-on: https://review.coreboot.org/c/coreboot/+/73864 Tested-by: build bot (Jenkins) Reviewed-by: Felix Singer --- src/arch/x86/include/arch/registers.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/arch/x86/include/arch/registers.h b/src/arch/x86/include/arch/registers.h index 7043cd1941..2145fbc682 100644 --- a/src/arch/x86/include/arch/registers.h +++ b/src/arch/x86/include/arch/registers.h @@ -19,7 +19,7 @@ uint16_t h##A##x; \ } __packed; \ uint32_t e##A##x; \ - } __packed; + } __packed #define LONG_DOWNTO16(A) \ union { \ @@ -28,17 +28,17 @@ uint16_t h##A; \ } __packed; \ uint32_t e##A; \ - } __packed; + } __packed #define QUAD_DOWNTO8(A) \ union { \ - LONG_DOWNTO8(A) \ + LONG_DOWNTO8(A); \ uint64_t r##A##x; \ } __packed #define QUAD_DOWNTO16(A) \ union {\ - LONG_DOWNTO16(A) \ + LONG_DOWNTO16(A); \ uint64_t r##A; \ } __packed