[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH 2/3] common/kernel: Rename hypfs "params" variable


  • To: <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • From: Michal Orzel <michal.orzel@xxxxxxx>
  • Date: Fri, 5 Dec 2025 12:49:59 +0100
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=lists.xenproject.org smtp.mailfrom=amd.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=amd.com; dkim=none (message not signed); arc=none (0)
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=QfmrvD0GvxlxUpk2W8eXR5CB2EZhdEir/U1Wc2sOxq8=; b=hIY46zXAKjKmjFIelqOG68SB4Wg/lWY7+KAkjfy7YHOz+LwMbfxrykWVajytzr1CmDff7jPUDoyhFii2CmZWybJn19ZrWUWQ+Mjv26a7uaqK3L8oPlAD/pC97nxaDwrn+ec9rLikLwnAmGDh6KxksCIyq/rELemXQEYvFpvvw/M2ORabAI0R1nv7Vzcz0SPZm+zcuceb56vop20EMDL2Uco8qhJfGhJfZJP5d9dgfFzf0YO2BvtkdQ5rhpkKZXpkbP8AGXQrgE2HqRgT2JQiH/zI7ttwhGXh1NW28ie0rfpguh9YduwXYrj3S7EkR2JkaFE73XEMNA6nDkhdPqDC6Q==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=Ed+qIam6lljdNBRmvG5eerl9zW4e/0DMrSKzgG/JS/oQp+fUZ8kaK9y58gSu2414cf8JqjMqt6kuVqXZqCYL7k23Nw4kSf7IaOOdjPpZGkAOCkqOl9X2ySdG1axNXunkifGO6QTsxbu9wZd9KB3xG6+RQNmxzYKiBybJXBAkLGjURhq/aCZpbXhCN+gPM3096z3hQ/Ojsux1UkWC8bEwOBbLhgJ+rVsj3KJ6vLFkPzHCFKygfLnT6+cQgAf6cKBSMwlVS+B9+OSwyQaA11V1oxtHLKB0qX3OdFWHID66fVC+XggfUPw7fzszVnH6D491GWv1fEPAjfOPZxUbJXCixA==
  • Cc: Michal Orzel <michal.orzel@xxxxxxx>, Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, Anthony PERARD <anthony.perard@xxxxxxxxxx>, "Jan Beulich" <jbeulich@xxxxxxxx>, Julien Grall <julien@xxxxxxx>, Roger Pau Monné <roger.pau@xxxxxxxxxx>, "Stefano Stabellini" <sstabellini@xxxxxxxxxx>
  • Delivery-date: Fri, 05 Dec 2025 11:52:15 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

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@xxxxxxx>
---
 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 e6979352e100..fb45f8139995 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, &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;
-- 
2.43.0




 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.