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@gmail.com>
Acked-by: Jan Beulich <jbeulich@suse.com>
This commit is contained in:
Nicola Vetrini authored and Jan Beulich committed 2025-11-25 10:23:11 +01:00
1 parent 08c787f66c
commit c7376ee322
1 file changed
+2 -2
+2 -2
View File
@@ -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) \
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.