Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp4828317imj; Wed, 13 Feb 2019 01:38:50 -0800 (PST) X-Google-Smtp-Source: AHgI3IZbIPvyBoslxAV5yLOimoZeqsbcee5Hl5TrJf+6SAbNsiWB3bSWJ1rR0eYeXhTLjW/wfqYB X-Received: by 2002:a62:3a01:: with SMTP id h1mr8491192pfa.169.1550050730517; Wed, 13 Feb 2019 01:38:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550050730; cv=none; d=google.com; s=arc-20160816; b=u9hdcARIB6b1FGzd1FHGF/Dy1Ajup3PNktOry3Lveiw9Aw7bjK1BXs7nVlH68kvbFn pdRwE8TWH0OZAaABcXhFZE3rTlAoQFSxY1qE6l9abz4/v5K24TnJAkaL6V86tpttbO9u ljLU1bgi45Gi9tG8K7BS7cLrYn+S4wZOQuWrvjW7ruzQm30V9A4L65A4wXEvXHkhO5sN j2P4zxcJzvzueT0xbzUAPjK0/Hr04rjXklIFFLhMTlYV4P9dMSBPOnj6t3HS/vnOVanX JkuxgPWvtR/Y1eWnSqtgx8PHrKW7WgNKHG5dRa4QzmEEABkscexfOEy60ffXXhUFcTF3 qCZg== 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=Sxx+mlJOnQqF8LM3AFqxTEVHgpOYIFpbc+4AjA3qutU=; b=a/Il0ptJBPde6WanhXrIr0HZnSSpVbTxEOGsOSBYh8UrAVdUE8iTY2Uz2fB1QO8ZNP cGCq99VFe4zmX5r4C6Q3ElqK62wQq5wlkhNFr/XIssQvGl/Q3/WCA+pYu2qC9mZCa3Wl OfiEgXorwQhy4UPSLSk1/xBTO/lAwhAGtJA6vfPQZZr1aJqaBfXjBEL8uyJoX3/CiCxV Yfhuo7Lj+p5+k/M6RSpRd7wbbWhNmgXMY9umBLNM8X+pOljnrQFL4iqiG7ExPGVPAXap 1AAWRR9+x0Tq1O3IfUjqkuHy171tJ7RIxYVLZwqFxqyx/OjdW9gEPQBkTRevrBN0B+nq s+WQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@wdc.com header.s=dkim.wdc.com header.b=aqMPOXvV; dkim=pass header.i=@sharedspace.onmicrosoft.com header.s=selector1-wdc-com header.b=T0vTWxWZ; 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 v6si15556316pfv.181.2019.02.13.01.38.32; Wed, 13 Feb 2019 01:38:50 -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=aqMPOXvV; dkim=pass header.i=@sharedspace.onmicrosoft.com header.s=selector1-wdc-com header.b=T0vTWxWZ; 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 S1733139AbfBMGc0 (ORCPT + 99 others); Wed, 13 Feb 2019 01:32:26 -0500 Received: from esa6.hgst.iphmx.com ([216.71.154.45]:32464 "EHLO esa6.hgst.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728793AbfBMGcY (ORCPT ); Wed, 13 Feb 2019 01:32:24 -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=+/p8HkxkueZ7rQ8VzLG/lOFOWhPGN42z3n4YDQTEe1Y=; b=aqMPOXvViAZY/6RxnbCQ17RfGATPK9weIg3HJG4AF8E3/fou394goeWZ ldt8vpSCY16IJ8z1GYk1SawfgTIVy8/4IN609nqksyMXjsWYJTO4pxfTn zxCQ7KThMtJyiTGWYld1jKIKFZluTNIGxHEEHdhILSIQGnO6774QJ5K4w bftoe3NILjxC4UPvvkh7aznU8UnnWQeNcbzYN+xxQfDc4SquEIsyWitjo dj7JWSyGz0+bJ0kYxVXaMqxWM5OMor1nCwFFIjYCutbrOfZt8XjK807V/ j/H9lT+VpAwO3ozMMZ4SB2/ebRBiKsu+7arGCY679B6KI9gK0ld1edG1W g==; X-IronPort-AV: E=Sophos;i="5.58,364,1544457600"; d="scan'208";a="102859898" Received: from mail-co1nam05lp2050.outbound.protection.outlook.com (HELO NAM05-CO1-obe.outbound.protection.outlook.com) ([104.47.48.50]) by ob1.hgst.iphmx.com with ESMTP; 13 Feb 2019 14:32:24 +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=Sxx+mlJOnQqF8LM3AFqxTEVHgpOYIFpbc+4AjA3qutU=; b=T0vTWxWZfRQq1mBruxLOubJxihzE3BrwOyjfAxksmV6Xt/THlVw2JHvi2rhsGBAOWsW6c8R266BxkYZ8wXQBQn2ExhpmmkHOuCHa+w40eDgMQtKnAjXmPoS67NzWK6BI72ccVxB383h6oYeljPpfUqZtV8r4u2i1GrB2CG5q3R0= Received: from DM6PR04MB6059.namprd04.prod.outlook.com (20.178.226.89) by DM6PR04MB5515.namprd04.prod.outlook.com (20.178.224.158) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1601.22; Wed, 13 Feb 2019 06:32:02 +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:02 +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 1/6] RISC-V: Move free_initrd_mem() to kernel/setup.c Thread-Topic: [PATCH v4 1/6] RISC-V: Move free_initrd_mem() to kernel/setup.c Thread-Index: AQHUw2XUM0HeGU3JKUmZsgmw0A9sjg== Date: Wed, 13 Feb 2019 06:32:02 +0000 Message-ID: <20190213063127.28703-2-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) 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: 7afd3fc0-37b8-46df-590e-08d6917cf6bd 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:DM6PR04MB5515; x-ms-traffictypediagnostic: DM6PR04MB5515: wdcipoutbound: EOP-TRUE x-microsoft-exchange-diagnostics: =?iso-8859-1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emFIQgNgeTgWkoCvt1Ueo?= =?iso-8859-1?Q?lC3fp5JercTEWI2B36EMGuqlDqLI6V8W7o//gc+jCeFRmX6SnaIOw4XpX9?= =?iso-8859-1?Q?9g3LcfbT6O9aQe70sqQeyG3Vs9T7kg2i28A93Y5MsnS9Ke96t6PTr2upVS?= =?iso-8859-1?Q?YE4HjWsuIBMIgyY5WhJ40PyJb+J0m5Zu3dF3RmGrjfPB3yDmFOBF7F+PAs?= =?iso-8859-1?Q?P83RYpVYq5L6ve/FVVEt/TIdLFiGWymBzq2Hc1AIR/PO739lUAYP9IIyr5?= =?iso-8859-1?Q?ax7sAnTxyiOJ/ykhUwmNflu+rkAzLhx75csS7ZexmLhGGe2oVmK0TgSAZW?= =?iso-8859-1?Q?xq6s80ZRCvshUPFNIEMDN/StPEeBiSdD0J++ksCb/XuMd76mPGO9kBsnEL?= =?iso-8859-1?Q?BwZOkUFbKX5AVIec78IM4JHshQ64rLoi8giHS9n9wd4Xg/WIwSEc3N3MvU?= =?iso-8859-1?Q?DY9SJTJD2fX0HtBOHLfedpO?= x-microsoft-antispam-prvs: x-forefront-prvs: 094700CA91 x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(136003)(366004)(39860400002)(346002)(396003)(376002)(199004)(189003)(1076003)(6512007)(2171002)(478600001)(72206003)(446003)(386003)(6346003)(2616005)(11346002)(102836004)(6506007)(476003)(2906002)(256004)(50226002)(4326008)(97736004)(14454004)(6486002)(110136005)(25786009)(6436002)(68736007)(316002)(44832011)(486006)(99286004)(36756003)(8936002)(186003)(6116002)(106356001)(81156014)(81166006)(8676002)(3846002)(86362001)(26005)(105586002)(71200400001)(71190400001)(66066001)(305945005)(53936002)(52116002)(7736002)(76176011)(54906003);DIR:OUT;SFP:1102;SCL:1;SRVR:DM6PR04MB5515;H:DM6PR04MB6059.namprd04.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;A:1;MX:1; authentication-results: spf=none (sender IP is ) smtp.mailfrom=Anup.Patel@wdc.com; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: Z/+k1kL3m5Ezi+vw8DoPnzd8eDogu4WAijlP41ExbSzZ0t8Cm2IF87iNX9+u2Xvq1tcGZHsFC+rN1C/58ePiIKOqLm41rqOb2PjWy8wsbIY5LA0xzpJGP8LxAE4FH3AQi0hUVtLQN82QoGZ9gtpgBZCGh53JCaiMmz8sLDS52TJ8ycC08qWl1UJCYfuyjVtIM1icZzmXXWpW8ZGVyqwekZpTtJ38hiaSsQHVNWgojk0MyxkPVqJiKVLWfHMg1s73z3ZnX/AEgCiwiSWxsSRLtJrOEOACdJdZrfJz5jncWktEn2JD3KRggzdiaFPZ0GQGwqItZs3zVHWbkl1ZjWImgRmlGR1vxPR0ebjFvdnU8f7uWLph2qc0U3e19OLxAekAvJS+Ii/HuteW0eRULalX7VNzp4b27Jxys79HESvcnK8= 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: 7afd3fc0-37b8-46df-590e-08d6917cf6bd X-MS-Exchange-CrossTenant-originalarrivaltime: 13 Feb 2019 06:31:59.3520 (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: DM6PR04MB5515 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org We move free_initrd_mem() to kernel/setup.c so that all initrd related functions are in one place. Signed-off-by: Anup Patel Reviewed-by: Christoph Hellwig Reviewed-by: Palmer Dabbelt --- arch/riscv/kernel/setup.c | 4 ++++ arch/riscv/mm/init.c | 7 ------- 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/arch/riscv/kernel/setup.c b/arch/riscv/kernel/setup.c index 77564310235f..36f60b4d2147 100644 --- a/arch/riscv/kernel/setup.c +++ b/arch/riscv/kernel/setup.c @@ -96,6 +96,10 @@ static void __init setup_initrd(void) initrd_start =3D 0; initrd_end =3D 0; } + +void free_initrd_mem(unsigned long start, unsigned long end) +{ +} #endif /* CONFIG_BLK_DEV_INITRD */ =20 pgd_t swapper_pg_dir[PTRS_PER_PGD] __page_aligned_bss; diff --git a/arch/riscv/mm/init.c b/arch/riscv/mm/init.c index 658ebf645f42..504a5e491f5a 100644 --- a/arch/riscv/mm/init.c +++ b/arch/riscv/mm/init.c @@ -14,7 +14,6 @@ #include #include #include -#include #include #include =20 @@ -64,9 +63,3 @@ void free_initmem(void) { free_initmem_default(0); } - -#ifdef CONFIG_BLK_DEV_INITRD -void free_initrd_mem(unsigned long start, unsigned long end) -{ -} -#endif /* CONFIG_BLK_DEV_INITRD */ --=20 2.17.1