Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp4829905imj; Wed, 13 Feb 2019 01:41:09 -0800 (PST) X-Google-Smtp-Source: AHgI3IZNqRk8L6bU8FEbJlt542q27KugZ5BVgMulVfoHg+U4fJLC7TiJCxX0T4IecnmhEqDlrF1b X-Received: by 2002:a17:902:584:: with SMTP id f4mr9143510plf.28.1550050869410; Wed, 13 Feb 2019 01:41:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550050869; cv=none; d=google.com; s=arc-20160816; b=IgnjsBeYmn0cChqDILicxLBIzdz0aMhwfibQxjPGXovagkL/Nw4NR1W9UQKkvsezd+ D3o1E8eKLFXD6+Et875DJQ04pmJIQIr0SmSUlIroNvKWeaRZgqb8tb05y6TuOfgUy5h7 LTrArpYhSy4QV1F7AyquuYW79dbk2hjc3ZzAzC+ky73npVb3/T5JdkmWXT02dhA3Yw+W KhtaaNJDTM2Ev0+z3GfHT8TYRzz7Y44d0HdjVw2pudtxbfMfUUYq+10qQAdTjc9yEfUZ Il5v5H3CSVLRY41guk6cyr8c1iRG9a0nyRAOBTy0Lh09/XrJLeWhXYTs7Kd3eOmQR6XI fblQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :wdcipoutbound:content-language:accept-language:in-reply-to :references:message-id:date:thread-index:thread-topic:subject:cc:to :from:dkim-signature:dkim-signature; bh=N+0AVyeEHd1iUHRkPUD6vRsiNWlv2R9o902vTqIBfs0=; b=vEaHPhKpbnapis7u8Na2gOC90xL38tgZR25z36e2xMIQGc8zCU4aCGCE00Jg/if5Px icIhMiuGYT0d34LERW5nW6FftrreGP6ffE4F5geE9eAL72SXCKyLvEUM9jm1vPeyW4mp yx5wPZG62lZVuWYRVDmLnf55JM94BAPcZjZQBEa0t+Q2x2nEDCYLeO6C4nOSv6f1q8qc ltxLupo9W2NikZO5hxgXp/0BpjxbUe4VeCewxGGG8VMN76QgMK39EMLxU2T8yK42BT/F Lx37DbvjqPOsjUNq/tItNGY5Y2vZw4p51DbnAtNNPRaUNDZi6dKn+gBAoVEp2EhLwFv/ /gfw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@wdc.com header.s=dkim.wdc.com header.b=BdwgK5Ve; dkim=pass header.i=@sharedspace.onmicrosoft.com header.s=selector1-wdc-com header.b=hshCeRMU; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=wdc.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s123si14659100pgs.93.2019.02.13.01.40.50; Wed, 13 Feb 2019 01:41:09 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@wdc.com header.s=dkim.wdc.com header.b=BdwgK5Ve; dkim=pass header.i=@sharedspace.onmicrosoft.com header.s=selector1-wdc-com header.b=hshCeRMU; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=wdc.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1733180AbfBMGch (ORCPT + 99 others); Wed, 13 Feb 2019 01:32:37 -0500 Received: from esa1.hgst.iphmx.com ([68.232.141.245]:24582 "EHLO esa1.hgst.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1733120AbfBMGcZ (ORCPT ); Wed, 13 Feb 2019 01:32:25 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=wdc.com; i=@wdc.com; q=dns/txt; s=dkim.wdc.com; t=1550039545; x=1581575545; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=VGSTh2Ic6u1arTIsot2MkHbC7XHLwGF1acoeESpQzbQ=; b=BdwgK5Ve8jEeFtXO/53djh8LCZtmzsBQITgrY4WKL8HTZq2u0WbGjYe+ IFFR16onpY1chiDfY8drr9ahy9UjMNkDHd6SG16wLfl722ExsT6jjPu3b 7YXTB+ukeSnCtCgQabjLDbgvdhAZxgPvNsyxwYarKBcFQeoTk0+EUHDyG 5dE2LUEgsVwC3kB0ZXm4yYUHa/MWsDwFp3UTZnwYa1F3XAsp+Qu0yLVZs di+BZS8KqMj0WAGqMY5doMdFrKfFDXqFe7I53aryCSyBmNEtfVMMbn608 fTf23A+xsO2uru7i66hcdXZG6YU2RgSMy8/fx4+7/6voNvB1TVMOc8xa0 w==; X-IronPort-AV: E=Sophos;i="5.58,364,1544457600"; d="scan'208";a="206244739" Received: from mail-by2nam03lp2059.outbound.protection.outlook.com (HELO NAM03-BY2-obe.outbound.protection.outlook.com) ([104.47.42.59]) by ob1.hgst.iphmx.com with ESMTP; 13 Feb 2019 14:32:25 +0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sharedspace.onmicrosoft.com; s=selector1-wdc-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=N+0AVyeEHd1iUHRkPUD6vRsiNWlv2R9o902vTqIBfs0=; b=hshCeRMUfED75B40rkwk3cj7ye4rWUVrvKdr1BzJQMJhNKJFOxAnkeXEvX8pbEfz5dSbd9FKwj7kez5oOYdxxcBojB0+AdoiCQixMcSe8oeZJb6zYzVlVFnUxkO6zqbvLpMjrPPp5P9zuUxwysaBqjSrggK2Xb8FgTNv1aYMUbE= Received: from DM6PR04MB6059.namprd04.prod.outlook.com (20.178.226.89) by DM6PR04MB5628.namprd04.prod.outlook.com (20.179.51.151) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1622.16; Wed, 13 Feb 2019 06:32:24 +0000 Received: from DM6PR04MB6059.namprd04.prod.outlook.com ([fe80::d006:5be7:c3f:ba6c]) by DM6PR04MB6059.namprd04.prod.outlook.com ([fe80::d006:5be7:c3f:ba6c%2]) with mapi id 15.20.1601.023; Wed, 13 Feb 2019 06:32:24 +0000 From: Anup Patel To: Palmer Dabbelt , Albert Ou CC: Atish Patra , Paul Walmsley , Christoph Hellwig , "linux-riscv@lists.infradead.org" , "linux-kernel@vger.kernel.org" , Anup Patel Subject: [PATCH v4 6/6] RISC-V: Free-up initrd in free_initrd_mem() Thread-Topic: [PATCH v4 6/6] RISC-V: Free-up initrd in free_initrd_mem() Thread-Index: AQHUw2XhneCVLsk8fkmL4zO8eU0wjg== Date: Wed, 13 Feb 2019 06:32:24 +0000 Message-ID: <20190213063127.28703-7-anup.patel@wdc.com> References: <20190213063127.28703-1-anup.patel@wdc.com> In-Reply-To: <20190213063127.28703-1-anup.patel@wdc.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: MA1PR0101CA0027.INDPRD01.PROD.OUTLOOK.COM (2603:1096:a00:22::13) To DM6PR04MB6059.namprd04.prod.outlook.com (2603:10b6:5:129::25) authentication-results: spf=none (sender IP is ) smtp.mailfrom=Anup.Patel@wdc.com; x-ms-exchange-messagesentrepresentingtype: 1 x-mailer: git-send-email 2.17.1 x-originating-ip: [129.253.179.161] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: c4a4d949-0354-4ba6-aa2d-08d6917d03da x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600110)(711020)(4605077)(4618075)(2017052603328)(7153060)(7193020);SRVR:DM6PR04MB5628; x-ms-traffictypediagnostic: DM6PR04MB5628: wdcipoutbound: EOP-TRUE x-microsoft-exchange-diagn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kSIZkhRPaN64XUMBSBxgoaF5L0lGo+78e5V?= =?iso-8859-1?Q?FwMif8kfADwqNdLQuAd/HJeZL2dSN/jNTuarWG9A5t++xMdjgcHvsdhMN9?= =?iso-8859-1?Q?Nf090g9nw4OUpShY+tByBVR6S0FPRnqF6GPmJag5Cvc1RtNLfamJb8R4GC?= =?iso-8859-1?Q?1Kdz9LH412h8jtPXUOunzRmFxrrnZeEa4eKip7y7pMS86DiXFG4eJer0Cs?= =?iso-8859-1?Q?yanOfZxO40BzfCwNkB5hHmB74+tJqWz2feNCg8dcHnhjgUBCDPghBAfnKX?= =?iso-8859-1?Q?2BvG82IxZtpvi8UFdPpUlzy1Y9xLIAKOLymShlF14/3vBN1VvvQDOqeax7?= =?iso-8859-1?Q?RTeBKEIIXCxo8quky519KFAcRMM4ZvNoCDytTPqn8EARGl3RzXkgb1S48Z?= =?iso-8859-1?Q?oGqKAvtu5Do4djcvFz34PbmYGi+9IUUBZi6zskyVCTxtzg+blmcGHHrSJM?= =?iso-8859-1?Q?fvz712i4NGkgnFK3hOBJhle?= x-microsoft-antispam-prvs: x-forefront-prvs: 094700CA91 x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(346002)(396003)(376002)(136003)(39860400002)(366004)(199004)(189003)(14454004)(478600001)(4326008)(106356001)(97736004)(86362001)(50226002)(66066001)(102836004)(2906002)(6436002)(256004)(14444005)(6512007)(105586002)(72206003)(25786009)(26005)(53936002)(6486002)(36756003)(4744005)(316002)(186003)(8676002)(7736002)(81166006)(81156014)(8936002)(110136005)(54906003)(11346002)(2616005)(6116002)(71200400001)(3846002)(71190400001)(68736007)(2171002)(52116002)(76176011)(6506007)(386003)(99286004)(1076003)(305945005)(476003)(44832011)(486006)(446003);DIR:OUT;SFP:1102;SCL:1;SRVR:DM6PR04MB5628;H:DM6PR04MB6059.namprd04.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;A:1;MX:1; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: w/SxbdvuIYHo0lN9hTcaTjqsfQU8IJ7l4xNMO1lRUTs3sizL21jq2vLFXnDg27Y6woOnkiBIx92EfKWgW1wlSey4jtlY2ofcpFXops/AevFtQfaWGH6VP6sdbltXgvfFYQsDHp2yq6DNaAW79j4Z2Sl2627Y7LJfbIl/GYGnZn5mGyolAq2uklRQKnrgjB+MZrQNm2CJqHus2TxIAHHXQwiKcGn0oUMsO2nG00ZAnbaAWN2IadEmvLVsACgjHoVwR+66jviYwlb/zGlJx2N6HbqXZWAaH4aPgRxENg0QD1XKUJ6+yHV9PoDyJfiYALKsC8NIQp9o0VIG1+5a4jdK/I6bkG2bBJmyQ7N9sl1VivqPqB8ErhpsNzdQJG/unVgGmj4H8XZEgEoCBFmqTIr/YtKwezwH5VPoXtv9e2x7i1A= Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: wdc.com X-MS-Exchange-CrossTenant-Network-Message-Id: c4a4d949-0354-4ba6-aa2d-08d6917d03da X-MS-Exchange-CrossTenant-originalarrivaltime: 13 Feb 2019 06:32:21.3546 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-id: b61c8803-16f3-4c35-9b17-6f65f441df86 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR04MB5628 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org We should free-up initrd memory in free_initrd_mem() instead of doing nothing. Signed-off-by: Anup Patel --- arch/riscv/kernel/setup.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/riscv/kernel/setup.c b/arch/riscv/kernel/setup.c index 9cd583b6d1cd..c22b873de856 100644 --- a/arch/riscv/kernel/setup.c +++ b/arch/riscv/kernel/setup.c @@ -97,8 +97,9 @@ static void __init setup_initrd(void) initrd_end =3D 0; } =20 -void free_initrd_mem(unsigned long start, unsigned long end) +void __init free_initrd_mem(unsigned long start, unsigned long end) { + memblock_free(__pa(start), end - start); } #endif /* CONFIG_BLK_DEV_INITRD */ =20 --=20 2.17.1