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 <michal.orzel@amd.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
This commit is contained in:
Michal Orzel authored and Andrew Cooper committed 2025-12-05 18:06:19 +00:00
1 parent 13721c45b0
commit 59f163cca5
1 file changed
+3 -3
+3 -3
View File
@@ -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, &params, true);
hypfs_add_dir(&hypfs_root, &params_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(&params, &param->hypfs, true);
hypfs_add_leaf(&params_dir, &param->hypfs, true);
}
return 0;
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.