fix(runtime): clang-tidy macro parentheses warnings
This patch encloses macro arguments in brackets, as advised by the
clang-tidy bugprone-macro-parentheses check.
Signed-off-by: Chuyue Luo <Chuyue.Luo@arm.com>
Change-Id: Ic1e85bba46aa55fefd7c4df1b5e49f7909863697
diff --git a/runtime/rsi/logger.c b/runtime/rsi/logger.c
index fd88109..031803c 100644
--- a/runtime/rsi/logger.c
+++ b/runtime/rsi/logger.c
@@ -31,9 +31,9 @@
#define RSI_HANDLER_ID(_id) SMC64_FID_OFFSET_FROM_RANGE_MIN(RSI, SMC_RSI_##_id)
#define RSI_FUNCTION(_id, _in, _out)[RSI_HANDLER_ID(_id)] = { \
- .fn_name = #_id, \
- .num_args = _in, \
- .num_vals = _out \
+ .fn_name = (#_id), \
+ .num_args = (_in), \
+ .num_vals = (_out) \
}
static const struct rsi_handler rsi_logger[] = {