From 7f5d74b73585d285b080a528a21c14731b3e02c6 Mon Sep 17 00:00:00 2001 From: Emmanuel Blot Date: Mon, 4 Dec 2023 18:52:56 +0100 Subject: [PATCH] [ot] hw/opentitan: ot_dev_proxy.c: fix `MEMTXATTRS_WITH_ROLE` syntax Signed-off-by: Emmanuel Blot --- hw/opentitan/ot_dev_proxy.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/opentitan/ot_dev_proxy.c b/hw/opentitan/ot_dev_proxy.c index a69bc218bb61..b142619fe06d 100644 --- a/hw/opentitan/ot_dev_proxy.c +++ b/hw/opentitan/ot_dev_proxy.c @@ -187,7 +187,7 @@ enum OtDevProxyErr { #define MEMTXATTRS_WITH_ROLE(_r_) \ (MemTxAttrs) \ { \ - .role = _r_ \ + .role = (_r_) \ } #define MEMTXATTRS_GET_ROLE(_a_) ((_a_).unspecified ? 0xfu : (_a_).role); #else