diff options
author | Olof Johansson <olof@lixom.net> | 2019-04-11 03:41:52 +0300 |
---|---|---|
committer | Anup Patel <anup@brainfault.org> | 2019-04-24 07:19:46 +0300 |
commit | 10baa64c02f6746fd506136e0693aa2d592574fb (patch) | |
tree | da00e48f0cb5d1434cbc7c31bb6ca15efa7d4564 /include/sbi/riscv_locks.h | |
parent | fbf986ac2a0b926ae97e6796b87e366610d7589e (diff) | |
download | opensbi-10baa64c02f6746fd506136e0693aa2d592574fb.tar.xz |
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 <olof@lixom.net>
Diffstat (limited to 'include/sbi/riscv_locks.h')
-rw-r--r-- | include/sbi/riscv_locks.h | 11 |
1 files changed, 6 insertions, 5 deletions
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); |