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

[PATCH] xen/dt: Drop unused function parameters


  • To: <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • From: Michal Orzel <michal.orzel@xxxxxxx>
  • Date: Tue, 27 Oct 2026 15:01:18 +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=vfx1sLfat0z31OyZ0i435/xRrzrAwm1ta/dChDVIAPU=; b=ECooy6thGGmHswODFowXBMoGfMDgK+jpuLpwDTLBSs2MmhPeLjriG559QLq5jHr/h+vfY79GFybWuoLzoZp+WL9vOeHVyf/FZTdksOcl32A2y200QUGjk5Of2OX9qK9kDZfSJj1seSMLRpewyPrJPDIQ+LQLVjzZOGd29x4DZazsg9yuF4BtLWx+G5bX+QKp8/y+SW9LkHpkTzC2/+BEzq7lTKOeWAW5KOGSxfXD++Elph+3OvJiDw5cHFLccsSxQqB2Vil/cAZTYgFD/0NDBx4rLqgkhih4TbHx2sztPPLS8RDGtlLf7v1WAKl5hMcLKnM/mYVE3QJ8UVQqI1ml7Q==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=qXy9kQznZ+/tUTekcTHLOQVGnIZ9tdAS1e6jS0eLkYTUAHgyWXkrS3oEZjk+iaXdn2/DvuonL9iLcCFdh6RZrTperHkgYsWeoAJ/UHAjFsMXX4JQjTXX3o3OLPAv+sRahVZTzJKexwtG+qRNWj923a+xlVD4yiIXfxB84TJbSg/2lR+prBN/ibhu03UvDHXfuqwfNDLdErp+hbLD1nlaxPHEKa7WV+sutjPjEEfSBMH7XQ8HzBnl11YRazWGYWFe4goxrTI6NqPgvJCJm7arVTRG/lcK0ctuf8GDg6IlG/+hn4p3NecnbymQuJPjT9ZCcA5UsisCZuMHUQFT35bDpg==
  • Authentication-results: eu.smtp.expurgate.cloud; dkim=pass header.s=selector1 header.d=amd.com header.i="@amd.com" header.h="From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck"
  • Cc: Michal Orzel <michal.orzel@xxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>, Julien Grall <julien@xxxxxxx>, Bertrand Marquis <bertrand.marquis@xxxxxxx>
  • Delivery-date: Tue, 27 Oct 2026 14:02:29 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

- drop `name` and `depth` from process_memory_node(),
- drop `name`, `depth`, `address_cells` and `size_cells` from
process_reserved_memory(),
- drop `name` from process_chosen_node() and process_domain_node().

No functional change.

Signed-off-by: Michal Orzel <michal.orzel@xxxxxxx>
---
 xen/common/device-tree/bootinfo-fdt.c | 21 +++++++--------------
 1 file changed, 7 insertions(+), 14 deletions(-)

diff --git a/xen/common/device-tree/bootinfo-fdt.c 
b/xen/common/device-tree/bootinfo-fdt.c
index 94ebf12fd646..1064cea4e9b4 100644
--- a/xen/common/device-tree/bootinfo-fdt.c
+++ b/xen/common/device-tree/bootinfo-fdt.c
@@ -171,7 +171,6 @@ static int __init device_tree_get_meminfo(const void *fdt, 
int node,
 }
 
 static int __init process_memory_node(const void *fdt, int node,
-                                      const char *name, int depth,
                                       u32 address_cells, u32 size_cells,
                                       struct membanks *mem)
 {
@@ -191,8 +190,7 @@ static int __init process_reserved_memory_node(const void 
*fdt, int node,
     if ( depth != 1 )
         return 0;
 
-    rc = process_memory_node(fdt, node, name, depth, address_cells,
-                             size_cells, data);
+    rc = process_memory_node(fdt, node, address_cells, size_cells, data);
 
     if ( rc == -ENOSPC )
         panic("Max number of supported reserved-memory regions reached.\n");
@@ -201,9 +199,7 @@ static int __init process_reserved_memory_node(const void 
*fdt, int node,
     return 0;
 }
 
-static int __init process_reserved_memory(const void *fdt, int node,
-                                          const char *name, int depth,
-                                          u32 address_cells, u32 size_cells)
+static int __init process_reserved_memory(const void *fdt, int node)
 {
     return device_tree_for_each_node(fdt, node,
                                      process_reserved_memory_node,
@@ -279,7 +275,6 @@ static void __init process_multiboot_node(const void *fdt, 
int node,
 }
 
 static int __init process_chosen_node(const void *fdt, int node,
-                                      const char *name,
                                       u32 address_cells, u32 size_cells)
 {
     const struct fdt_property *prop;
@@ -343,7 +338,6 @@ static int __init process_chosen_node(const void *fdt, int 
node,
 }
 
 static int __init process_domain_node(const void *fdt, int node,
-                                      const char *name,
                                       u32 address_cells, u32 size_cells)
 {
     const struct fdt_property *prop;
@@ -389,18 +383,17 @@ static int __init early_scan_node(const void *fdt,
      */
     if ( !efi_enabled(EFI_BOOT) &&
          device_tree_is_memory_node(fdt, node, depth) )
-        rc = process_memory_node(fdt, node, name, depth,
-                                 address_cells, size_cells, 
bootinfo_get_mem());
+        rc = process_memory_node(fdt, node, address_cells, size_cells,
+                                 bootinfo_get_mem());
     else if ( depth == 1 && !dt_node_cmp(name, "reserved-memory") )
-        rc = process_reserved_memory(fdt, node, name, depth,
-                                     address_cells, size_cells);
+        rc = process_reserved_memory(fdt, node);
     else if ( depth <= 3 && (device_tree_node_compatible(fdt, node, 
"xen,multiboot-module" ) ||
               device_tree_node_compatible(fdt, node, "multiboot,module" )))
         process_multiboot_node(fdt, node, name, address_cells, size_cells);
     else if ( depth == 1 && device_tree_node_matches(fdt, node, "chosen") )
-        rc = process_chosen_node(fdt, node, name, address_cells, size_cells);
+        rc = process_chosen_node(fdt, node, address_cells, size_cells);
     else if ( depth == 2 && device_tree_node_compatible(fdt, node, 
"xen,domain") )
-        rc = process_domain_node(fdt, node, name, address_cells, size_cells);
+        rc = process_domain_node(fdt, node, address_cells, size_cells);
     else if ( depth <= 3 && device_tree_node_compatible(fdt, node, 
"xen,domain-shared-memory-v1") )
         rc = process_shm_node(fdt, node, address_cells, size_cells);
 
-- 
2.43.0




 


Rackspace

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