|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [xen staging] xen/param: address violation of MISRA C Rule 20.7
commit c7376ee3229a4dca9fffb4ab82f415921a7fa09c
Author: Nicola Vetrini <nicola.vetrini@xxxxxxxxx>
AuthorDate: Tue Nov 25 10:23:11 2025 +0100
Commit: Jan Beulich <jbeulich@xxxxxxxx>
CommitDate: Tue Nov 25 10:23:11 2025 +0100
xen/param: address violation of MISRA C Rule 20.7
The rule states: Expressions resulting from the expansion of
macro parameters shall be enclosed in parentheses.
Add parentheses in the defition of `custom_runtime_var_sz' to
address the violations.
No functional change.
Signed-off-by: Nicola Vetrini <nicola.vetrini@xxxxxxxxx>
Acked-by: Jan Beulich <jbeulich@xxxxxxxx>
---
xen/include/xen/param.h | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/xen/include/xen/param.h b/xen/include/xen/param.h
index 1bdbab34ab..f5a2189400 100644
--- a/xen/include/xen/param.h
+++ b/xen/include/xen/param.h
@@ -102,8 +102,8 @@ extern struct param_hypfs __paramhypfs_start[],
__paramhypfs_end[];
#define custom_runtime_set_var_sz(parfs, var, sz) \
{ \
- (parfs)->hypfs.u.content = var; \
- (parfs)->hypfs.e.max_size = sz; \
+ (parfs)->hypfs.u.content = (var); \
+ (parfs)->hypfs.e.max_size = (sz); \
(parfs)->hypfs.e.size = strlen(var) + 1; \
}
#define custom_runtime_set_var(parfs, var) \
--
generated by git-patchbot for /home/xen/git/xen.git#staging
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |