From patchwork Sat Apr 10 07:18:08 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anup Patel X-Patchwork-Id: 1464595 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (no SPF record) smtp.mailfrom=lists.infradead.org (client-ip=2001:8b0:10b:1:d65d:64ff:fe57:4e05; helo=desiato.infradead.org; envelope-from=opensbi-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org; receiver=) Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; secure) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=desiato.20200630 header.b=AtakivTC; dkim=fail reason="signature verification failed" (2048-bit key; secure) header.d=infradead.org header.i=@infradead.org header.a=rsa-sha256 header.s=bombadil.20210309 header.b=DG919+Av; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=wdc.com header.i=@wdc.com header.a=rsa-sha256 header.s=dkim.wdc.com header.b=E/Qoeibg; dkim=neutral header.d=sharedspace.onmicrosoft.com header.i=@sharedspace.onmicrosoft.com header.a=rsa-sha256 header.s=selector2-sharedspace-onmicrosoft-com header.b=WSH1Xvrc; dkim-atps=neutral Received: from desiato.infradead.org (desiato.infradead.org [IPv6:2001:8b0:10b:1:d65d:64ff:fe57:4e05]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4FHRG40Gktz9sWT for ; Sat, 10 Apr 2021 17:19:40 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=desiato.20200630; h=Sender:Content-Transfer-Encoding :Content-Type:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To:Message-Id:Date: Subject:Cc:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=2rykZzsQsm2HpHkkHQ0rT+ZKuOcGboeqSNbS+z0YjQw=; b=AtakivTCSS4O+6mHTEQxzpB/H F+toNuDUt9fJtA3dOK/B1C+JpmgkfZFWCEao/ijKCSJGpbScTFJZGUDcqL58wik9r/9XS7ENhoI/i J6mMt4TFM9ARHwZV+wlSbof/0tKTedPZbncLnCTsnBts286UCkNfTsSeIDsXp9eT+mtdzF+VTbxFU yIxAJOJEUed19UDKVxd0Hy7MwGIfuAa1X7bnNzEXrbyaQ25AV1HUQsR6zMSpZ3aCM+m8Ct9DF2czF LJdsXSD28mctknV5WrC9GgFnInuclDaviewFNfzC6nNQpHACPHGe8CKOTShmVDixe5XumMqFcObOB 0kR/ZK43Q==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lV7u2-002M8L-41; Sat, 10 Apr 2021 07:19:34 +0000 Received: from bombadil.infradead.org ([2607:7c80:54:e::133]) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lV7tT-002M1l-OW for opensbi@desiato.infradead.org; Sat, 10 Apr 2021 07:19:01 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=MIME-Version:Content-Type: Content-Transfer-Encoding:References:In-Reply-To:Message-Id:Date:Subject:Cc: To:From:Sender:Reply-To:Content-ID:Content-Description; bh=Gj3w32cz/Hk9+lMmgf/ZYTMAWjVZXeKkcjKnOFhnQ7s=; b=DG919+AvsRBQeRp0+rXIyBgaK2 t9M31Fb/iiKVJp2sz3OeawjguORznhXZNaCg0dUERKcXZa0hbKCAxgihPIaB3ZSe43aP3Uptggcpk RQnV4pYzeM/AipjEu4fFSrWyPEgmnU2b2syFnXKCv2I4/tGHwSUzIMX2Mrt3WuKy1OtUfStnCM5xO OhWSY9dgacdCjy4+afLSzf2C5RHZRLIewfrcQJqTeZ37+TMLODNpKcq1B8rArZZz0+JS3X67bwXVO v4TRag7oslbx8KHJ3ucaSCaZqk0Gf3O3qk89SqXYwINJ6/rJ4p4h4lBssNFy5/8nXWhaeS7rTkZKl S1r0BeDQ==; Received: from esa3.hgst.iphmx.com ([216.71.153.141]) by bombadil.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lV7tR-004yE9-9f for opensbi@lists.infradead.org; Sat, 10 Apr 2021 07:18:58 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=wdc.com; i=@wdc.com; q=dns/txt; s=dkim.wdc.com; t=1618039137; x=1649575137; h=from:to:cc:subject:date:message-id:in-reply-to: references:content-transfer-encoding:mime-version; bh=xpoGp2Pqf3GCtw/s+j1hLXfRWmf96uHUwcnC9rKctdw=; b=E/QoeibgcJJE2vxtKVw9UV/mtdTgHhZ0W7kq6dL5J5ikH5Wj5rexZzDW 2fe8rdhxOWQkBf/BY82RihUpvJ1W9EdNesuNKlTqqL34DP/9CXmPHaH2V Xi3IH3Yz7Qeqm8nlh8XyzEcQkkP9Zy2ewR33SFT3/YOx9ZkbPBtlEOMB6 BeJCekac9qLp6Wq7iGAwSJP5p92jevuzy2wxCVaUtB6ueZ/EfexLy6ram qOJzsbYBqIJJKk+rQszk+keL1gzp+xgrjlWOmoAhe41+C7bIDLHa0vt4B REplkSbuHjnNvtsLJAEk+8dBfgnU+5ROJ27qqiCwwlCsfsLtTMTVCkPys Q==; IronPort-SDR: efasaEdjH5KXeaDgZHX+eF1LfYuI3WPmvPfmu/csgQXmOfM0ZJ37cW0pyem0QvWLSy46+QX+Ta tqyWvlN1UAYqT33H/+AmRleLfGIt+zFAHwydtsA2fgaktzaU3pccI6b0HfhKg+dhZr3R6RTMHB eR4KbBnAtd5SV8EzmGel/9Af04VdqMJU3fHWlR8qDyHbPNqp5iWwI1X3BYZOaWVUUzzN/0QlyB kpO63bw+LCQjeemJ7Wo6mW48j8kztIKFkBikI5xw2c/qv5u8VrYaz2RlnklSNMJUnr94BJBfo2 bJA= X-IronPort-AV: E=Sophos;i="5.82,210,1613404800"; d="scan'208";a="168866186" Received: from mail-mw2nam12lp2044.outbound.protection.outlook.com (HELO NAM12-MW2-obe.outbound.protection.outlook.com) ([104.47.66.44]) by ob1.hgst.iphmx.com with ESMTP; 10 Apr 2021 15:18:56 +0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=PJWcGeL5vITWzc4v4CEbOAUPVnZLpITPfhIOt3bPhHZSGOB3JrtsmKmdUd5Y5fP+MQggxC6tpVG8ka6MH00XGrjDcfTLV30Togz5ZuhHhAkDXkFfNPnT7r7Bi2pWMsj5AmOKL9PuKNrNUb6iTaQV467HBLtPN3hzah26Sieu76ZEiL1ae1RYk7h8HnXqONWUbGqd/54iAITaRj5Q52FDN2zxVqZWad938EQh5QgDXURI/uGIvJ77ldCgQosujGWZYL+9S0TVptqTeM2Fi6ViYTQkSS2XBa5kKblVQVhNsybUwXvKIvzrgBVh1wsbV0q0KuxCayh9xxtbVZGpuHcyWw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Gj3w32cz/Hk9+lMmgf/ZYTMAWjVZXeKkcjKnOFhnQ7s=; b=M83O9Tmxi8vPlu0zPwIepLvLiBvaq4JjzRnwM2TDVo0Wds/bXXwgP4WsPU047W30/vRepkYA5LQCCQYvimDhREzYP9e50x9NLID6+1l7l4UC91fUNx6atb0IUszIQrsKkTaDF+peXVpiqFSPGNSMnnTaIwtcZ5N4ypqebets+GN5f3p+IC0CFwfJ1Ti2sigtpSDVuONdvw6QxIeyesNC5YpZSCOYzoaH/ujwDhBYG2ARihjyyMuKLIh42Ax+kGEZijcEimOiRecuN3qcDK12DKvf5YjJfat0MSX0DKLsPQLzJeFSLMQ6ym2eLtnM9zdtfTI3HGUqNUCoIPB/LFeaeA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=wdc.com; dmarc=pass action=none header.from=wdc.com; dkim=pass header.d=wdc.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sharedspace.onmicrosoft.com; s=selector2-sharedspace-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Gj3w32cz/Hk9+lMmgf/ZYTMAWjVZXeKkcjKnOFhnQ7s=; b=WSH1XvrcMAxdAXVWGroi3FYOWvn/guDDxSY7rw/Fo7em9D3wG6L5QTckAF6+jwK2QMENYf8gKWfrQTRhspDH87CFFYW4isijB2YarsPipXb3s+t0gcnRzSdpKIcx0SNJJt0ay836cKJDWYJF4vQDMWp0RIY6GDI8U0KM37bGwhE= Authentication-Results: wdc.com; dkim=none (message not signed) header.d=none;wdc.com; dmarc=none action=none header.from=wdc.com; Received: from DM6PR04MB6201.namprd04.prod.outlook.com (2603:10b6:5:127::32) by DM6PR04MB6362.namprd04.prod.outlook.com (2603:10b6:5:1e7::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3999.29; Sat, 10 Apr 2021 07:18:56 +0000 Received: from DM6PR04MB6201.namprd04.prod.outlook.com ([fe80::38c0:cc46:192b:1868]) by DM6PR04MB6201.namprd04.prod.outlook.com ([fe80::38c0:cc46:192b:1868%7]) with mapi id 15.20.4020.018; Sat, 10 Apr 2021 07:18:56 +0000 From: Anup Patel To: Atish Patra , Alistair Francis Cc: Anup Patel , opensbi@lists.infradead.org, Anup Patel Subject: [PATCH 7/7] lib: sbi: Make sbi_domain_memregion_initfw() a local function Date: Sat, 10 Apr 2021 12:48:08 +0530 Message-Id: <20210410071808.759856-8-anup.patel@wdc.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210410071808.759856-1-anup.patel@wdc.com> References: <20210410071808.759856-1-anup.patel@wdc.com> X-Originating-IP: [122.179.48.237] X-ClientProxiedBy: MAXPR01CA0106.INDPRD01.PROD.OUTLOOK.COM (2603:1096:a00:5d::24) To DM6PR04MB6201.namprd04.prod.outlook.com (2603:10b6:5:127::32) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from wdc.com (122.179.48.237) by MAXPR01CA0106.INDPRD01.PROD.OUTLOOK.COM (2603:1096:a00:5d::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4020.16 via Frontend Transport; Sat, 10 Apr 2021 07:18:54 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 66a06ce2-b359-47ed-fefb-08d8fbf0e71a X-MS-TrafficTypeDiagnostic: DM6PR04MB6362: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: WDCIPOUTBOUND: EOP-TRUE X-MS-Oob-TLC-OOBClassifiers: OLM:972; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: xOgm+4TQIvtAelEmSnzoirfkp6zGpYybLv870rlXk6u5Hj4qK7nLSMwPc/MinCQiQfT/5sEK0lCvhroKQRPJHhsLk9hxmv4ZSv4sJQKWH00sLIFJKWgrg0TH6sD8W78eLBlnnvnX/JxWhYGLjaVy7MCRWvb+5H7iErfzrrpmLz6X0BxdfOSna+6Z/5bU46K+I/1JQBK4u9OUCsT1oyT0LDHuC6xnzlnsb8km2pRzi0R8c+QdKPuVwWX5ZTKMAP5Vit/UHvM//UI4Lzrlz9fp1H+mS0LtMPLnEzrztLlcCZDIPLLw0dcHcs9ReKsylhmoR0thFQ1zyf8Jv6ShrUe46xmW/djFVf2REvZtcrT75t1NN3K7sFa8wY+giVxq4UMKgtK6LHxKF2mnTVj6pkhZMCA2wNVoUWmbJPxu1RQVFl2jVKeFLKAhsjVcsKlhDsn0WUdJw59w1fx03q8hHmV+gH5glsQtFRX+DXC5B73ha+jgHf5f7WcMfkAU4owE/hV65H3RC8JIad8PgtLpIW9ysu5pLm6q1nm/4IiJ1feCFf/Wilde+EeymwF/0G99w9Y0vygAlwPMEeYQd/aocv4ivO4hupJlrw1sNOEguWHjBvK5wZ/d9xKES23cgMHJ96DIbMXBaTEBrBoJgEpjkXedw+B5vxCS21d7/N2qrT5q9M0= X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DM6PR04MB6201.namprd04.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(396003)(376002)(366004)(346002)(136003)(39860400002)(110136005)(8936002)(83380400001)(8676002)(38100700002)(8886007)(54906003)(4326008)(316002)(38350700002)(52116002)(2906002)(186003)(16526019)(1076003)(55016002)(6636002)(26005)(66556008)(86362001)(66476007)(6666004)(44832011)(5660300002)(66946007)(36756003)(2616005)(7696005)(956004)(478600001); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData: Es5W/va+9QrApuyMgJOfnD9yUpQwtsZhZpzNbusc1rJtOITJvs085mHAHkx882kJGTGUR3de4pI/JM0fX2jwjXttPPuARuVUJ7FaH6+oDbVpbDkyxNbv+VqpUsex8dpQUaCgxAf+OVzhRDQ4lZlup3H8lyvr0cOeYJAGKsXpvWqepfhBGZ77ART41okr8HcvrGqVk/veYJmeV4UR3vB3n+kseAtV4yqM1uDdNfr83paWR69aQx0lXKRcNrhkqYkSNHQWNESYchHBCvzbFIZhy04MLDfVFiEfWjjHxRrHciHajumspHx2Q8ZsjYF1Lkeywxki+OGg86I/0yDtYQhEUQLrOMtoF+U5v7Rx7A9R0Xcxp/J0B5fO8dLh7JJMELsOMQv81gZUZyPbMPBiYieupSZt8Q4hlxGAhYmkKJRVQ9a9XPtioGiBhB28vUkuTgKxSejnPO8R7lIa7fF4WHFRkbicgx2gDKLX5AJGnN13aMwTM4bxyMkrQmSAjZtyV2tyBYgbAgvbh27MBjq4e9uaK31h519KxH0+WZfYMi3q3/YDAJGtloaXvEnNJMrIQmjTp5+39V7itlQOrPwaCbEgUt4wxu2Nf1qhZw0Qk96t2bVZXDQHoO7y5uidf3lL62NybHLIDbrZPfe5VW2m/GIZxHGUBGY6mO34IM8/NRkFS5/B1YyIsFe7UkEKvAIHP7UAI3Jj4wZGeSVjcfqIuXKQp7Hmb3HReuK1WJtc/k+ynS11km4/OTRXyQxFcIzCSN8ga0AKy/4b6ZudLEr2ty8FNLXQmIbhhTFtLP41sbDVgJo4azZc/TbAQVm8Ui8X4Xp8vSjqFJl9GjzmXI5CppSSaHi298mL2So9hV0pUOadOVM7HWWeAvF2isY5zQR7bKxIq311xOaLA/eYC491J7gLVseMAa4wzMNDcwg7BZGPaU2Wtri+4PqCTgpbrPdu3OKlgaMvXlFTkpg6LbSSPekZbfRjV24If+fzU5xBS4fl6NGW5twBVZAir+dBGheRnEbIfQ7y0ktwlxlGRZ9wo+rVa7KBglWhb7BPZqSgOzUXvtVGZVrnFDrFBJ86pe3ZE8C6zifZkhzp9G1MyBMEuLb7N27Bs70VFdpLkQQ2ydFV1H+hipVmUs4g3CWub8Gso7XTUreBFjR5AbgOXMIYS31Z1+/D5cSmM8VMNTaIlgQ+igeTB6/NY3HH73SJ+M/ghViLiWo4anhdBb9oUZCNtBCF8ubEA7rSqz201PENJTapOJnFkEZewC8BjcQfWffsKEUCOfjjadHXU1HyNvBXzY+/5j4s3bqtVa2f1cuoQrufmPgDN7+jluSjUZvCSHmM4dvq X-OriginatorOrg: wdc.com X-MS-Exchange-CrossTenant-Network-Message-Id: 66a06ce2-b359-47ed-fefb-08d8fbf0e71a X-MS-Exchange-CrossTenant-AuthSource: DM6PR04MB6201.namprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Apr 2021 07:18:56.2413 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: b61c8803-16f3-4c35-9b17-6f65f441df86 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: Siq0+4VQyUyLJdGP6VFI9b+jlDX0Al4cnweSSBtC4gM975BpCskMCrAUdPSrl/CTffJBAf5KGyv/gwOxIIhuAQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR04MB6362 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210410_001857_371883_82E5A1CF X-CRM114-Status: GOOD ( 11.00 ) X-Spam-Score: -2.5 (--) X-Spam-Report: Spam detection software, running on the system "bombadil.infradead.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: The sbi_domain_memregion_initfw() is no longer used outside sbi_domain.c so let's make it a local function. Signed-off-by: Anup Patel --- include/sbi/sbi_domain.h | 3 --- lib/sbi/sbi_domain.c | 4 ++-- 2 files changed, 2 insertions(+), 5 deletions(-) Content analysis details: (-2.5 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -2.3 RCVD_IN_DNSWL_MED RBL: Sender listed at https://www.dnswl.org/, medium trust [216.71.153.141 listed in list.dnswl.org] 0.0 SPF_NONE SPF: sender does not publish an SPF Record -0.0 SPF_HELO_PASS SPF: HELO matches SPF record -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain 0.0 MSGID_FROM_MTA_HEADER Message-Id was added by a relay X-BeenThere: opensbi@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "opensbi" Errors-To: opensbi-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org The sbi_domain_memregion_initfw() is no longer used outside sbi_domain.c so let's make it a local function. Signed-off-by: Anup Patel Reviewed-by: Xiang W Reviewed-by: Alistair Francis --- include/sbi/sbi_domain.h | 3 --- lib/sbi/sbi_domain.c | 4 ++-- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/include/sbi/sbi_domain.h b/include/sbi/sbi_domain.h index ef53ca5..3de5e46 100644 --- a/include/sbi/sbi_domain.h +++ b/include/sbi/sbi_domain.h @@ -127,9 +127,6 @@ bool sbi_domain_is_assigned_hart(const struct sbi_domain *dom, u32 hartid); ulong sbi_domain_get_assigned_hartmask(const struct sbi_domain *dom, ulong hbase); -/** Initialize a domain memory region as firmware region */ -void sbi_domain_memregion_initfw(struct sbi_domain_memregion *reg); - /** * Initialize a domain memory region based on it's physical * address and size. diff --git a/lib/sbi/sbi_domain.c b/lib/sbi/sbi_domain.c index 5e3a30d..069e2a7 100644 --- a/lib/sbi/sbi_domain.c +++ b/lib/sbi/sbi_domain.c @@ -64,7 +64,7 @@ ulong sbi_domain_get_assigned_hartmask(const struct sbi_domain *dom, return ret; } -void sbi_domain_memregion_initfw(struct sbi_domain_memregion *reg) +static void domain_memregion_initfw(struct sbi_domain_memregion *reg) { if (!reg) return; @@ -577,7 +577,7 @@ int sbi_domain_init(struct sbi_scratch *scratch, u32 cold_hartid) /* Root domain firmware memory region */ sbi_domain_memregion_init(scratch->fw_start, scratch->fw_size, 0, &root_fw_region); - sbi_domain_memregion_initfw(&root_memregs[root_memregs_count++]); + domain_memregion_initfw(&root_memregs[root_memregs_count++]); /* Root domain allow everything memory region */ sbi_domain_memregion_init(0, ~0UL,