]> xenbits.xensource.com Git - xen.git/commit
arm/public: address violations of MISRA C Rule 20.7
authorNicola Vetrini <nicola.vetrini@bugseng.com>
Fri, 29 Mar 2024 09:11:30 +0000 (10:11 +0100)
committerStefano Stabellini <stefano.stabellini@amd.com>
Fri, 5 Apr 2024 18:15:47 +0000 (11:15 -0700)
commit6bdb67d19ecb8c8e561d975f5c62b6a8a5783f51
treeb0cbf3f570065f08a5af0b3f29f2e5f1b441f922
parente9b0f8b6909dcba9843250c486e80879b042fd65
arm/public: address violations of MISRA C Rule 20.7

MISRA C Rule 20.7 states: "Expressions resulting from the expansion
of macro parameters shall be enclosed in parentheses". Therefore, some
macro definitions should gain additional parentheses to ensure that all
current and future users will be safe with respect to expansions that
can possibly alter the semantics of the passed-in macro parameter.

No functional change.

Signed-off-by: Nicola Vetrini <nicola.vetrini@bugseng.com>
Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>
xen/include/public/arch-arm.h