From: Xenia Ragiadakou <burzalodowa@gmail.com>
To: xen-devel@lists.xenproject.org
Cc: Stefano Stabellini <sstabellini@kernel.org>,
Julien Grall <julien@xen.org>,
Bertrand Marquis <bertrand.marquis@arm.com>,
Volodymyr Babchuk <Volodymyr_Babchuk@epam.com>
Subject: [PATCH 4/7] xen/vgic: Fix MISRA C 2012 Rule 20.7 violation
Date: Fri, 19 Aug 2022 22:43:56 +0300 [thread overview]
Message-ID: <20220819194359.1196539-5-burzalodowa@gmail.com> (raw)
In-Reply-To: <20220819194359.1196539-1-burzalodowa@gmail.com>
In macro VGIC_V3_LR_INDEX(), add parentheses around the macro parameter
to prevent against unintended expansions.
Signed-off-by: Xenia Ragiadakou <burzalodowa@gmail.com>
---
xen/arch/arm/include/asm/new_vgic.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/xen/arch/arm/include/asm/new_vgic.h b/xen/arch/arm/include/asm/new_vgic.h
index ab57fcd91d..b7fa9ab11a 100644
--- a/xen/arch/arm/include/asm/new_vgic.h
+++ b/xen/arch/arm/include/asm/new_vgic.h
@@ -43,7 +43,7 @@ enum vgic_type {
#define VGIC_V2_MAX_LRS (1 << 6)
#define VGIC_V3_MAX_LRS 16
-#define VGIC_V3_LR_INDEX(lr) (VGIC_V3_MAX_LRS - 1 - lr)
+#define VGIC_V3_LR_INDEX(lr) (VGIC_V3_MAX_LRS - 1 - (lr))
#define VGIC_CONFIG_EDGE false
#define VGIC_CONFIG_LEVEL true
--
2.34.1
next prev parent reply other threads:[~2022-08-19 19:44 UTC|newest]
Thread overview: 37+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-08-19 19:43 [PATCH 0/7] Fix MISRA C 2012 Rule 20.7 violations Xenia Ragiadakou
2022-08-19 19:43 ` [PATCH 1/7] xen/arm: gic_v3_its: " Xenia Ragiadakou
2022-08-19 22:13 ` Stefano Stabellini
2022-08-19 19:43 ` [PATCH 2/7] xsm/flask: sidtab: " Xenia Ragiadakou
2022-08-19 22:14 ` Stefano Stabellini
2022-08-26 13:41 ` Daniel P. Smith
2022-08-19 19:43 ` [PATCH 3/7] xen/elf: " Xenia Ragiadakou
2022-08-19 22:16 ` Stefano Stabellini
2022-08-19 19:43 ` Xenia Ragiadakou [this message]
2022-08-19 22:16 ` [PATCH 4/7] xen/vgic: Fix MISRA C 2012 Rule 20.7 violation Stefano Stabellini
2022-08-19 19:43 ` [PATCH 5/7] xen/rbtree: " Xenia Ragiadakou
2022-08-19 22:17 ` Stefano Stabellini
2022-08-19 19:43 ` [PATCH 6/7] xen/arm: processor: Fix MISRA C 2012 Rule 20.7 violations Xenia Ragiadakou
2022-08-19 22:18 ` Stefano Stabellini
2022-08-19 19:43 ` [PATCH 7/7] xen/device_tree: " Xenia Ragiadakou
2022-08-19 22:20 ` Stefano Stabellini
2022-08-22 9:59 ` Jan Beulich
2022-08-22 10:43 ` Xenia Ragiadakou
2022-08-22 11:48 ` Jan Beulich
2022-08-25 8:02 ` Xenia Ragiadakou
2022-08-25 8:25 ` Jan Beulich
2022-08-25 18:09 ` Stefano Stabellini
2022-08-26 6:21 ` Jan Beulich
2022-08-26 7:58 ` Xenia Ragiadakou
2022-08-26 8:01 ` Jan Beulich
2022-08-26 22:55 ` Stefano Stabellini
2022-08-31 22:35 ` [PATCH 0/7] " Stefano Stabellini
2022-09-01 9:27 ` Xenia Ragiadakou
2022-09-01 13:34 ` Bertrand Marquis
2022-09-02 2:07 ` Stefano Stabellini
2022-09-02 18:26 ` Xenia Ragiadakou
2022-09-03 0:52 ` Stefano Stabellini
2022-09-18 13:02 ` Roberto Bagnara
2022-09-19 9:23 ` Jan Beulich
2022-09-26 8:50 ` Xenia Ragiadakou
2022-09-28 14:11 ` Roberto Bagnara
2022-09-29 13:14 ` Xenia Ragiadakou
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20220819194359.1196539-5-burzalodowa@gmail.com \
--to=burzalodowa@gmail.com \
--cc=Volodymyr_Babchuk@epam.com \
--cc=bertrand.marquis@arm.com \
--cc=julien@xen.org \
--cc=sstabellini@kernel.org \
--cc=xen-devel@lists.xenproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.