summaryrefslogtreecommitdiff
path: root/include/sbi/riscv_io.h
diff options
context:
space:
mode:
authorOlof Johansson <olof@lixom.net>2019-04-11 03:41:46 +0300
committerAnup Patel <anup@brainfault.org>2019-04-24 07:19:46 +0300
commitfbf986ac2a0b926ae97e6796b87e366610d7589e (patch)
tree1d65814b7832b1173c4094e4f91c7da9f491e87a /include/sbi/riscv_io.h
parent97fb8c0e3bcd4d7915ea35020e4d95999d389cd3 (diff)
downloadopensbi-fbf986ac2a0b926ae97e6796b87e366610d7589e.tar.xz
all: Annotate some tables to have clang-format leave them alone
One of the shortcomings of clang-format is that it doesn't allow for aligned define tables, which is used for a number of constants. Add annotation to disable the automatic formatting where needed. Signed-off-by: Olof Johansson <olof@lixom.net>
Diffstat (limited to 'include/sbi/riscv_io.h')
-rw-r--r--include/sbi/riscv_io.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/sbi/riscv_io.h b/include/sbi/riscv_io.h
index ea29c44..e4bdc27 100644
--- a/include/sbi/riscv_io.h
+++ b/include/sbi/riscv_io.h
@@ -70,6 +70,9 @@ static inline u64 __raw_readq(const volatile void *addr)
#endif
/* FIXME: These are now the same as asm-generic */
+
+/* clang-format off */
+
#define __io_rbr() do {} while (0)
#define __io_rar() do {} while (0)
#define __io_rbw() do {} while (0)
@@ -106,4 +109,6 @@ static inline u64 __raw_readq(const volatile void *addr)
#define writeq(v,c) ({ __io_bw(); __raw_writeq((v),(c)); __io_aw(); })
#endif
+/* clang-format on */
+
#endif