From nobody Tue Nov 11 15:26:24 2025 Delivered-To: importer@patchew.org Received-SPF: none (zoho.com: 192.237.175.120 is neither permitted nor denied by domain of lists.xenproject.org) client-ip=192.237.175.120; envelope-from=xen-devel-bounces@lists.xenproject.org; helo=lists.xenproject.org; Authentication-Results: mx.zohomail.com; dkim=fail; spf=none (zoho.com: 192.237.175.120 is neither permitted nor denied by domain of lists.xenproject.org) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org; dmarc=fail(p=none dis=none) header.from=kernel.org ARC-Seal: i=1; a=rsa-sha256; t=1556658248; cv=none; d=zoho.com; s=zohoarc; b=EhIPc5/x/7hpPq3Ay9UMcg7xLI7dwjOu5u85ntlrUk6MBkNQzZXQDe9M7uQgYBjcpSzO1sI9ty6TLZY0457XtY1oLEq1ipmqc2u4NhzHctX7A0+W7gmXYOiS3ub3ISQYZ305Y0vPnVxx7QCnSXA0PlfAsfuKds68nQ/Zz13bU34= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1556658248; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To:ARC-Authentication-Results; bh=nMxdXWpq2BNOoS+Wb652mkeXl08NtPCXXzm5kOKNScQ=; b=I2QN5vdMmNGk667zNFTqajGghMsHhsJ3ivEH9WpQVvOosDJeuFPgre5TD7JFM+er2rkezNcRJZo4KUQW4bBZlLIds2CmrHfgUtC2sDryRm/7xpdTWnTHm0HUugShxYzfrSCC6WSwcGBwOm2G7nV8yEbZhGXGWlLvgZpCpPKlQuY= ARC-Authentication-Results: i=1; mx.zoho.com; dkim=fail; spf=none (zoho.com: 192.237.175.120 is neither permitted nor denied by domain of lists.xenproject.org) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org; dmarc=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) by mx.zohomail.com with SMTPS id 1556658248719270.8045022955778; Tue, 30 Apr 2019 14:04:08 -0700 (PDT) Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1hLZu1-0007hs-C8; Tue, 30 Apr 2019 21:03:01 +0000 Received: from us1-rack-dfw2.inumbo.com ([104.130.134.6]) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1hLZtz-0007fc-Fr for xen-devel@lists.xenproject.org; Tue, 30 Apr 2019 21:02:59 +0000 Received: from mail.kernel.org (unknown [198.145.29.99]) by us1-rack-dfw2.inumbo.com (Halon) with ESMTPS id 54f87a72-6b8b-11e9-843c-bc764e045a96; Tue, 30 Apr 2019 21:02:58 +0000 (UTC) Received: from sstabellini-ThinkPad-X260.xilinx.com (c-67-164-102-47.hsd1.ca.comcast.net [67.164.102.47]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id C4EB5217D7; Tue, 30 Apr 2019 21:02:57 +0000 (UTC) X-Inumbo-ID: 54f87a72-6b8b-11e9-843c-bc764e045a96 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1556658178; bh=Ck4HAdpRo/MJVybB0NXOKUYB51jhM+Sseutc5JUzyu4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Ce13DguK4B/HWhRk2ucZWpdLgiwx1EQXfNCL0ytZuDo2p7JptkdxgPhNZx3QVEw8a NLU4iOJU1U7AACVHgYLtmdRzXKZm2F54XUb9QM8JUoXbHR2vM1EdwmUJ7BH5gaejin gpcuDC9zJCW7DRqRtyrXnuSMqLZq6xjtAW1aME14= From: Stefano Stabellini To: xen-devel@lists.xenproject.org Date: Tue, 30 Apr 2019 14:02:49 -0700 Message-Id: <1556658172-8824-7-git-send-email-sstabellini@kernel.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: References: Subject: [Xen-devel] [PATCH v2 07/10] xen/arm: make process_memory_node a device_tree_node_func X-BeenThere: xen-devel@lists.xenproject.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Cc: Stefano Stabellini , julien.grall@arm.com, sstabellini@kernel.org MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Errors-To: xen-devel-bounces@lists.xenproject.org Sender: "Xen-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) Change the signature of process_memory_node to match device_tree_node_func. Signed-off-by: Stefano Stabellini --- Changes in v2: - new --- xen/arch/arm/bootfdt.c | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/xen/arch/arm/bootfdt.c b/xen/arch/arm/bootfdt.c index e7b08ed..b6600ab 100644 --- a/xen/arch/arm/bootfdt.c +++ b/xen/arch/arm/bootfdt.c @@ -124,9 +124,10 @@ int __init device_tree_for_each_node(const void *fdt, return 0; } =20 -static void __init process_memory_node(const void *fdt, int node, - const char *name, - u32 address_cells, u32 size_cells) +static int __init process_memory_node(const void *fdt, int node, + const char *name, int depth, + u32 address_cells, u32 size_cells, + void *data) { const struct fdt_property *prop; int i; @@ -139,14 +140,14 @@ static void __init process_memory_node(const void *fd= t, int node, { printk("fdt: node `%s': invalid #address-cells or #size-cells", name); - return; + return 0; } =20 prop =3D fdt_get_property(fdt, node, "reg", NULL); if ( !prop ) { printk("fdt: node `%s': missing `reg' property\n", name); - return; + return 0; } =20 cell =3D (const __be32 *)prop->data; @@ -161,6 +162,8 @@ static void __init process_memory_node(const void *fdt,= int node, bootinfo.mem.bank[bootinfo.mem.nr_banks].size =3D size; bootinfo.mem.nr_banks++; } + + return 0; } =20 static void __init process_multiboot_node(const void *fdt, int node, @@ -293,7 +296,8 @@ static int __init early_scan_node(const void *fdt, void *data) { if ( device_tree_node_matches(fdt, node, "memory") ) - process_memory_node(fdt, node, name, address_cells, size_cells); + process_memory_node(fdt, node, name, depth, address_cells, size_ce= lls, + NULL); else if ( depth <=3D 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); --=20 1.9.1 _______________________________________________ Xen-devel mailing list Xen-devel@lists.xenproject.org https://lists.xenproject.org/mailman/listinfo/xen-devel