From 59f163cca522b99570f7c382152b83b532fec389 Mon Sep 17 00:00:00 2001 From: Michal Orzel Date: Fri, 5 Dec 2025 12:49:59 +0100 Subject: [PATCH] common/kernel: Rename hypfs "params" variable Inside do_xen_version, there are two other places using local variables named "params". Rename hypfs dir "params" to "params_dir". This resolves MISRA C R5.3 violation. Signed-off-by: Michal Orzel Reviewed-by: Andrew Cooper --- xen/common/kernel.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/xen/common/kernel.c b/xen/common/kernel.c index e6979352e1..fb45f81399 100644 --- a/xen/common/kernel.c +++ b/xen/common/kernel.c @@ -483,13 +483,13 @@ static int __init cf_check buildinfo_init(void) } __initcall(buildinfo_init); -static HYPFS_DIR_INIT(params, "params"); +static HYPFS_DIR_INIT(params_dir, "params"); static int __init cf_check param_init(void) { struct param_hypfs *param; - hypfs_add_dir(&hypfs_root, ¶ms, true); + hypfs_add_dir(&hypfs_root, ¶ms_dir, true); for ( param = __paramhypfs_start; param < __paramhypfs_end; param++ ) { @@ -497,7 +497,7 @@ static int __init cf_check param_init(void) param->init_leaf(param); else if ( param->hypfs.e.type == XEN_HYPFS_TYPE_STRING ) param->hypfs.e.size = strlen(param->hypfs.u.content) + 1; - hypfs_add_leaf(¶ms, ¶m->hypfs, true); + hypfs_add_leaf(¶ms_dir, ¶m->hypfs, true); } return 0;