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_atomic.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_atomic.h')
-rw-r--r-- | include/sbi/riscv_atomic.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/include/sbi/riscv_atomic.h b/include/sbi/riscv_atomic.h index 215191e..40efb68 100644 --- a/include/sbi/riscv_atomic.h +++ b/include/sbi/riscv_atomic.h @@ -14,11 +14,12 @@ typedef struct { volatile long counter; } atomic_t; -#define ATOMIC_INIT(_lptr, val) \ - (_lptr)->counter = (val) +#define ATOMIC_INIT(_lptr, val) (_lptr)->counter = (val) -#define ATOMIC_INITIALIZER(val) \ - { .counter = (val), } +#define ATOMIC_INITIALIZER(val) \ + { \ + .counter = (val), \ + } long atomic_read(atomic_t *atom); |