Message ID | 20190213080647.68204-7-anup.patel@wdc.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-riscv-bounces+patchwork-linux-riscv=patchwork.kernel.org@lists.infradead.org> Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id ABD7413B5 for <patchwork-linux-riscv@patchwork.kernel.org>; Wed, 13 Feb 2019 08:08:04 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9A92E2BEA5 for <patchwork-linux-riscv@patchwork.kernel.org>; Wed, 13 Feb 2019 08:08:04 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 8C1C42C8B9; Wed, 13 Feb 2019 08:08:04 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAD_ENC_HEADER,BAYES_00, DKIM_SIGNED,DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 2D1142BEA5 for <patchwork-linux-riscv@patchwork.kernel.org>; Wed, 13 Feb 2019 08:08:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:In-Reply-To:References: Message-ID:Date:Subject:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=yItPc7De/nBD/KMYLkUklz1GSsoQEDPBvZW3JPSbD2M=; b=LqbwleezOKoJCo tpppwk0KUPo9Tib9vzfEbRNu0t9oLDKq9eUOionyLspNi0qGVvpVBQpmk1v1Lux09s3E7fyNXzn4w 5iXRhR5QyM5Ing/JkAiTLoK7/f8eQ/LBVTJBI9sGxOVCfydGF0T9b/Wbw/WWs9KjyYR8by5wFehGJ +Y+7zQv1GejmF+ggkA9D1CiolBIYdXG7JCl058HRnjiqq9UNVYcgZTG5uaUdRFbIyersonI8w/30U gmiQXPrA81s8CTLihGy1C6YxwvzKYHoFDSMuR18Su8CPcyNKfTnGTR8o7hyjAd3SIDj3oJIJ+K11e oHwhsDPewkj9kjkhfYCw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1gtpaL-0000zp-Cc; Wed, 13 Feb 2019 08:08:01 +0000 Received: from esa5.hgst.iphmx.com ([216.71.153.144]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gtpaE-0000Wv-Ew for linux-riscv@lists.infradead.org; Wed, 13 Feb 2019 08:07:57 +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=1550045275; x=1581581275; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=mVPMs9C8+6CQAaDj6NugfLu86pA3zkPXJHHWwQpuR9w=; b=VoPmgeHMUNQbaitKP+QU+CtqZsLTzDX5GELvAF9WL8tkvPvk269CgwXJ oR9G9QtQQQteAY+AXQ2ST103Q2/gulQjET2dTWmkQDapHw2GSB568boW0 DCYc1gfkopcZf8rxK1uCQNN/MT9j+imvfc58JhIaKkPrnV/1KcVlN8FFm 3zCUJze6+ARxArP7ziSWCINSOzJIWjarn99ECsX3S4qTHIV5cCrGfo5hm J443NsT7TIeZwtqP7E4nFC0K17rmD7FlKUhLvQqWLGa8j2X1HsEJOOGBJ fPYCet+Ismj674XSjyw6Clfboj9ODxMqt/nbnBDZhBJh0O29qkhlOUOGD Q==; X-IronPort-AV: E=Sophos;i="5.58,365,1544457600"; d="scan'208";a="102402348" Received: from mail-co1nam05lp2058.outbound.protection.outlook.com (HELO NAM05-CO1-obe.outbound.protection.outlook.com) ([104.47.48.58]) by ob1.hgst.iphmx.com with ESMTP; 13 Feb 2019 16:07:54 +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=UAFENJ0ckmNmp39g4DgIRLAtQx1PuVea/P1XlwG4f1o=; b=WueOUukaWaWiB4Q5/PNhCfOXDWlyQPbN7rLwxsoj0zhqqLlE43kClnZc5uyOJxB52YcTWhB7orr/UVBpx1qQTrU+roCjU9pwEIyx0NUVCcxwIDjZVeo2YrP12D5aAC/GWUrp9ABRHRJfi4coTewh7o+ro6/mVMBGj1U9HR4kzSQ= Received: from DM6PR04MB6059.namprd04.prod.outlook.com (20.178.226.89) by DM6PR04MB5993.namprd04.prod.outlook.com (20.178.225.146) 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 08:07:52 +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 08:07:52 +0000 From: Anup Patel <Anup.Patel@wdc.com> To: Palmer Dabbelt <palmer@sifive.com>, Albert Ou <aou@eecs.berkeley.edu> Subject: [PATCH v5 6/6] RISC-V: Free-up initrd in free_initrd_mem() Thread-Topic: [PATCH v5 6/6] RISC-V: Free-up initrd in free_initrd_mem() Thread-Index: AQHUw3M3QH97A0lstE6SewwvrcIfpw== Date: Wed, 13 Feb 2019 08:07:52 +0000 Message-ID: <20190213080647.68204-7-anup.patel@wdc.com> References: <20190213080647.68204-1-anup.patel@wdc.com> In-Reply-To: <20190213080647.68204-1-anup.patel@wdc.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: MA1PR01CA0140.INDPRD01.PROD.OUTLOOK.COM (2603:1096:a00:35::34) 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: b63cb087-1be9-43f7-f066-08d6918a59f6 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:DM6PR04MB5993; x-ms-traffictypediagnostic: DM6PR04MB5993: wdcipoutbound: EOP-TRUE x-microsoft-exchange-diagnostics: =?iso-8859-1?Q?1; DM6PR04MB5993; 23:nZoSFga0WrTqsE2lMz/Yi20cgjCC24DMQVMbeMJ?= =?iso-8859-1?q?TZAUuEcYEatOHuM?= =?iso-8859-1?q?X6FCeqXcIkcUjF14KsB5Xs5d10VZSqYxJ6UAmmOdFkkCSwTOdjJWwssHxhj+?= =?iso-8859-1?q?zsDm25dWHRs3M/yscESuqya9xhq6NpfcKviJYLQBkz0AeRMny6AZ7Sr2n+2Y?= =?iso-8859-1?q?bYCTDj82f57Cvazm7P6gVa7p7hRgWqsa6HYNKJ+VtoKYhXH/3s8fTBnexfhW?= =?iso-8859-1?q?ZgvY1LzRG5goXKZjoZydgipzEd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wrqN9GTo?= =?iso-8859-1?q?bCJoMLT9cYQfnIqIhaPR/6tYx2L0PkSnv+zlle/3G3tVczgexxXW+daSWOQz?= =?iso-8859-1?q?MmQsLAfJg10gghKnQuiaeqB6RZXsqXZdJsV7F3jBoce7ZQhaGdJZ4TtyUp70?= =?iso-8859-1?q?QQaglitghn5zXkOb39vUKW1B5/?= x-microsoft-antispam-prvs: <DM6PR04MB5993623481A37676F746A5588D660@DM6PR04MB5993.namprd04.prod.outlook.com> x-forefront-prvs: 094700CA91 x-forefront-antispam-report: SFV:NSPM; SFS:(10019020)(39860400002)(396003)(376002)(346002)(136003)(366004)(199004)(189003)(6512007)(99286004)(53936002)(50226002)(386003)(6116002)(52116002)(105586002)(3846002)(106356001)(76176011)(110136005)(6506007)(25786009)(256004)(54906003)(86362001)(6436002)(316002)(2171002)(14444005)(36756003)(6486002)(97736004)(4326008)(81166006)(66066001)(8676002)(68736007)(4744005)(102836004)(72206003)(476003)(2906002)(11346002)(446003)(81156014)(1076003)(14454004)(71200400001)(71190400001)(8936002)(7736002)(305945005)(26005)(186003)(486006)(2616005)(478600001)(44832011); DIR:OUT; SFP:1102; SCL:1; SRVR:DM6PR04MB5993; 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: /LFrOUpjCdpohcnQkb8T5xadw1Q7Wd66uxsOWCkLwkVOrsqlyuV3Xpg51jmE9AKeo1omQTdyWNnKfRz3hY/rm1bTgsyPwAygqHDQthu2OobNZojNDC2ErQJ5dmtJXj6SBi02+1Kv95kMx7x3iLOSoF0EGTD/sfVInkgseykxQfD8/FAz+XWu4u7JZvD7DSMedEA2qYB10o79+yyyjVcoi2jJzPWK9IOVbdcg1q4l50pbcRO4hpm/dCUczSV3C+DxGkqSkkYJjmVGeD36F5mpwyc86KeBFXehhDdhqqp/8EDOpnLZ2HQafnDpie7kcbj1ptyWqKZ/cIXM2OcFEN0+a7NBiVjoSO6keGD92JRjrqBZJyYviT0yULxN1XdNqZefmCn5ilqFz6s1ynXmOzkSrhH8Apu4q6myMmzSkghoEiw= MIME-Version: 1.0 X-OriginatorOrg: wdc.com X-MS-Exchange-CrossTenant-Network-Message-Id: b63cb087-1be9-43f7-f066-08d6918a59f6 X-MS-Exchange-CrossTenant-originalarrivaltime: 13 Feb 2019 08:07:48.9622 (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: DM6PR04MB5993 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190213_000755_116523_F528CADB X-CRM114-Status: GOOD ( 14.16 ) X-BeenThere: linux-riscv@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: <linux-riscv.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-riscv>, <mailto:linux-riscv-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-riscv/> List-Post: <mailto:linux-riscv@lists.infradead.org> List-Help: <mailto:linux-riscv-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-riscv>, <mailto:linux-riscv-request@lists.infradead.org?subject=subscribe> Cc: Anup Patel <Anup.Patel@wdc.com>, "linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>, Mike Rapoport <rppt@linux.ibm.com>, Christoph Hellwig <hch@infradead.org>, Atish Patra <Atish.Patra@wdc.com>, Paul Walmsley <paul.walmsley@sifive.com>, "linux-riscv@lists.infradead.org" <linux-riscv@lists.infradead.org> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-riscv" <linux-riscv-bounces@lists.infradead.org> Errors-To: linux-riscv-bounces+patchwork-linux-riscv=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP |
Series |
Fixmap support and MM cleanups
|
expand
|
diff --git a/arch/riscv/kernel/setup.c b/arch/riscv/kernel/setup.c index 9cd583b6d1cd..ed8dd28ca98c 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 = 0; } -void free_initrd_mem(unsigned long start, unsigned long end) +void __init free_initrd_mem(unsigned long start, unsigned long end) { + free_reserved_area((void *)start, (void *)end, -1, "initrd"); } #endif /* CONFIG_BLK_DEV_INITRD */
We should free-up initrd memory in free_initrd_mem() instead of doing nothing. Signed-off-by: Anup Patel <anup.patel@wdc.com> --- arch/riscv/kernel/setup.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)