From 10baa64c02f6746fd506136e0693aa2d592574fb Mon Sep 17 00:00:00 2001 From: Olof Johansson Date: Wed, 10 Apr 2019 17:41:52 -0700 Subject: all: run clang-format and update checked-in files Noisy commit, no functional changes. Generated with an current upstream clang-format and: clang-format -i $(find . -name \*.[ch]) Signed-off-by: Olof Johansson --- include/sbi/riscv_locks.h | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'include/sbi/riscv_locks.h') diff --git a/include/sbi/riscv_locks.h b/include/sbi/riscv_locks.h index 4476319..55da7c0 100644 --- a/include/sbi/riscv_locks.h +++ b/include/sbi/riscv_locks.h @@ -14,13 +14,14 @@ typedef struct { volatile long lock; } spinlock_t; -#define __RISCV_SPIN_UNLOCKED 0 +#define __RISCV_SPIN_UNLOCKED 0 -#define SPIN_LOCK_INIT(_lptr) \ - (_lptr)->lock = __RISCV_SPIN_UNLOCKED +#define SPIN_LOCK_INIT(_lptr) (_lptr)->lock = __RISCV_SPIN_UNLOCKED -#define SPIN_LOCK_INITIALIZER \ - { .lock = __RISCV_SPIN_UNLOCKED, } +#define SPIN_LOCK_INITIALIZER \ + { \ + .lock = __RISCV_SPIN_UNLOCKED, \ + } int spin_lock_check(spinlock_t *lock); -- cgit v1.2.3