summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Neuschäfer <j.neuschaefer@gmx.net>2017-09-19 15:19:53 +0200
committerMarc Jones <marc@marcjonesconsulting.com>2017-09-21 19:46:44 +0000
commitab002fae2b73dca63529807417482eec0bd1d8fb (patch)
treec56c30fc436de791b8102fa7183f4219eb08bd72
parent9b0204d744380c7d7b7859ad821195931461dae4 (diff)
src/lib/ubsan: Indent macros to improve readability
Change-Id: Ide4e58e584a1a2bbc1b861e2c4dd943a1aeb35ab Signed-off-by: Jonathan Neuschäfer <j.neuschaefer@gmx.net> Reviewed-on: https://review.coreboot.org/21600 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Ryan Salsamendi <rsalsamendi@hotmail.com> Reviewed-by: Marc Jones <marc@marcjonesconsulting.com>
-rw-r--r--src/lib/ubsan.c20
1 files changed, 9 insertions, 11 deletions
diff --git a/src/lib/ubsan.c b/src/lib/ubsan.c
index 1cd0612cf4..ead0e18026 100644
--- a/src/lib/ubsan.c
+++ b/src/lib/ubsan.c
@@ -61,22 +61,20 @@ static void ubsan_abort(const struct ubsan_source_location *location,
}
#define ABORT_VARIANT(name, params, call) \
-__attribute__((noreturn)) \
-void __ubsan_handle_##name##_abort params; \
-__attribute__((noreturn)) \
-void __ubsan_handle_##name##_abort params { \
- __ubsan_handle_##name call; \
- __builtin_unreachable(); \
-}
+ __attribute__((noreturn)) void __ubsan_handle_##name##_abort params; \
+ __attribute__((noreturn)) void __ubsan_handle_##name##_abort params { \
+ __ubsan_handle_##name call; \
+ __builtin_unreachable(); \
+ }
#define ABORT_VARIANT_VP(name) \
-ABORT_VARIANT(name, (void *a), (a))
+ ABORT_VARIANT(name, (void *a), (a))
#define ABORT_VARIANT_VP_VP(name) \
-ABORT_VARIANT(name, (void *a, void *b), (a, b))
+ ABORT_VARIANT(name, (void *a, void *b), (a, b))
#define ABORT_VARIANT_VP_IP(name) \
-ABORT_VARIANT(name, (void *a, intptr_t b), (a, b))
+ ABORT_VARIANT(name, (void *a, intptr_t b), (a, b))
#define ABORT_VARIANT_VP_VP_VP(name) \
-ABORT_VARIANT(name, (void *a, void *b, void *c), (a, b, c))
+ ABORT_VARIANT(name, (void *a, void *b, void *c), (a, b, c))
struct ubsan_type_mismatch_data {
struct ubsan_source_location location;