mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 02:01:24 +01:00
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:
1 parent
13721c45b0
commit
59f163cca5
1 file changed
+3
-3
+3
-3
@@ -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;
|
||||
|
||||