Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp3859575imj; Tue, 12 Feb 2019 06:00:59 -0800 (PST) X-Google-Smtp-Source: AHgI3Ibcr6xTkTh39DW2cuciO1sdKvNIjkLuU1Ok7oa6267r5gfCeZqEwztyfhFImDZiLE8HCPF7 X-Received: by 2002:aa7:80c8:: with SMTP id a8mr4092209pfn.27.1549980059219; Tue, 12 Feb 2019 06:00:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549980059; cv=none; d=google.com; s=arc-20160816; b=iYV9VTZDz9iDdVEtJ1Tnjri8VkrwkFvSunHuvmD+bF1opZRSlbTQ92Ah70r8MPAnTe 9YFZHPaSljW1dUxQ6KKGRgvSyqmAzJJt/FHuC6d1sXygq/MXOGRpYrcyRVIAnjSdaHIe gVkc51Xdccj4ylyA25LRnofRE1bi6c2amgih5sellu8lwxa869qElgsRActQysV8Z3nC k1vWPpJY3KDrMR+6wdbNA6zBBzU0eIPsYAz8kgV1uTwKAVmHrke6uEmFrN9XkdFVtZAQ F/EwSPsruVijnH8kTCkgJ4r5VJ4P/neW8TXLSTqBY6GZiWveJ1fVZjVqYBBqxJ6KhFV/ 6Vkg== 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=eE7cuLCrwqeCI2GErviQj8ukoOuFeD6pf7McpNqny80=; b=dQPJlW1Ru+K+aoBE+cyYOG4v1pyoOvZofEOSPUUVsClg8NMKdj3H9Z9+diPJlTjo/3 yVVmEDV4MmjqaquuZudB7NaGUmb6Dh6ylczHLbWonRY/MWFtM5bI+tNAgqFbLXtfhaDL 8MUz7WdZF5KjyxCCpQ6iBZ1Vp1vKX4Cx28uTGuaBnzhKEZDNQdZJur8De5Y04T1SVD0h s18r+dm9xTR2QJG8GO8Yg2qAni9LDLrmHqwXq9uOFtMonVVz9Sh8e1/HR0VXILA2XJo/ TBTb9yTZMA1abTErVVAfKEHTKxahihgIkcs7Z6bcQ5u2NI4OxO7dHzM3FFW08NURBsq6 uYhA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@wdc.com header.s=dkim.wdc.com header.b=fI8+ZH6D; dkim=pass header.i=@sharedspace.onmicrosoft.com header.s=selector1-wdc-com header.b=PnsjftTU; 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 n10si12740088pgd.57.2019.02.12.06.00.35; Tue, 12 Feb 2019 06:00:59 -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=fI8+ZH6D; dkim=pass header.i=@sharedspace.onmicrosoft.com header.s=selector1-wdc-com header.b=PnsjftTU; 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 S1730073AbfBLOAO (ORCPT + 99 others); Tue, 12 Feb 2019 09:00:14 -0500 Received: from esa3.hgst.iphmx.com ([216.71.153.141]:55918 "EHLO esa3.hgst.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730004AbfBLOAO (ORCPT ); Tue, 12 Feb 2019 09:00:14 -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=1549980015; x=1581516015; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=peWHjgeJOcMs/VI6T5c3UHJM4S2Ufl+OBhS24TMyuHU=; b=fI8+ZH6DumvacDuo9mOHV/mH9otWm0r8grlw8zTdwZwjZnG+zR6DV857 pQTmQ4I2Wqij/qdYgdu5MKlRQG5BBpNU6+V/hZftEh3T6ISoQ553hizm+ F4R9lPr+XgD+ZqDx3v46CTs0Vuvf5MQODDU+AiP1orYBfICFW2rfzpJA2 coSbs7UB/78o9OVck4L2RBZBs3at6F1q85hYmSxHsDWwBRNHSSM0bL57h kJcJKQASM63ieR9DpPnJHW0lqh1VPz3bPEf4vv59I0F58ZVBeoYeJBF7u HqpWFTx7Wc8yAqkDJ56JnWYjKewYniJfMPFVzNc/jVXAFwCFT4XuQ5DkY Q==; X-IronPort-AV: E=Sophos;i="5.58,362,1544457600"; d="scan'208";a="106025549" Received: from mail-bn3nam01lp2053.outbound.protection.outlook.com (HELO NAM01-BN3-obe.outbound.protection.outlook.com) ([104.47.33.53]) by ob1.hgst.iphmx.com with ESMTP; 12 Feb 2019 22:00:14 +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=eE7cuLCrwqeCI2GErviQj8ukoOuFeD6pf7McpNqny80=; b=PnsjftTUhZYNtf2Qzp0sFq5RlHfPS0XYC+J00NL1zOzTowrlIDdw57q6Dj7111CUj0MMOFabbLPw2FqjIwPPt2B+492J5LlF9PdlMJfSRkO+424Kji4PRY8+4zNQrOH02hbyOh/+CaxzUiSJz7a4lkOFpxRtnjQOe0Fl+vUQvLI= Received: from MN2PR04MB6061.namprd04.prod.outlook.com (20.178.247.148) by MN2PR04MB6062.namprd04.prod.outlook.com (20.178.247.149) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1601.21; Tue, 12 Feb 2019 14:00:12 +0000 Received: from MN2PR04MB6061.namprd04.prod.outlook.com ([fe80::2cdb:c465:af57:8be1]) by MN2PR04MB6061.namprd04.prod.outlook.com ([fe80::2cdb:c465:af57:8be1%7]) with mapi id 15.20.1601.023; Tue, 12 Feb 2019 14:00:12 +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 v3 1/6] RISC-V: Move free_initrd_mem() to kernel/setup.c Thread-Topic: [PATCH v3 1/6] RISC-V: Move free_initrd_mem() to kernel/setup.c Thread-Index: AQHUwttFxrDRYApwwUmalY3+4syPHQ== Date: Tue, 12 Feb 2019 14:00:12 +0000 Message-ID: <20190212135942.105008-2-anup.patel@wdc.com> References: <20190212135942.105008-1-anup.patel@wdc.com> In-Reply-To: <20190212135942.105008-1-anup.patel@wdc.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: MA1PR01CA0126.INDPRD01.PROD.OUTLOOK.COM (2603:1096:a00:35::20) To MN2PR04MB6061.namprd04.prod.outlook.com (2603:10b6:208:de::20) 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: [49.207.48.205] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 246676c1-51ca-4d7e-bdbf-08d690f267b6 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(7168020)(4627221)(201703031133081)(201702281549075)(8990200)(5600110)(711020)(4605077)(4618075)(2017052603328)(7153060)(7193020);SRVR:MN2PR04MB6062; x-ms-traffictypediagnostic: MN2PR04MB6062: wdcipoutbound: EOP-TRUE x-microsoft-exchange-diagnostics: =?iso-8859-1?Q?1;MN2PR04MB6062;23:ahieP0LQNL3ngaItGn/lMOAjVLyaqc6cnv/WtIE?= =?iso-8859-1?Q?NHlLlfaG0R6sO+CnMddHrmcKGfAhIeMOKeQJy0pkJz0KjP17v0e/AA1Q5Y?= =?iso-8859-1?Q?oTkzDW8/v0HGszd/vHEL3a/v37wtoyyFsLn+oqT1NStZwxDbpzBLcL7dMd?= =?iso-8859-1?Q?u6LZVIbXl8WKP7E0tCqAkB+Clxy+DR4s4VYfbQqteUSbxo2AQhldFExU8v?= =?iso-8859-1?Q?jcDIYXQh6a4Z5T0SuKUlubX/hDE6137Usi5mFUW/LNqy43moKLQUrUuUbU?= =?iso-8859-1?Q?X8qzPDFJX04GdR57hAZfSjKmiHFdfLzqdux8/79tCA0LHOFZXPLsyPZXh7?= =?iso-8859-1?Q?oOT5u6Y4EWObiP2rvx+JDJLDVY4Xj+nPRMzYe78xUKdQ4/VkX34mAooh0d?= =?iso-8859-1?Q?kK10wUd6SbpDKyKPLpNGyxplhORFPPRWrXu0k+92uv3mekMR88cTo/Xf49?= =?iso-8859-1?Q?Z6+4q6ZTRZjrqhp0dJ75+j1XOjcFC7h36wiZrh1rYU5OiqNGW4//lxmeOn?= =?iso-8859-1?Q?/P3V0EccNjaJIWq7e60PivEiagPzii0w5pyDshuNp1nELXJSmODXItDgfJ?= =?iso-8859-1?Q?FwroPFu8Qgzsi8cKaMPyUdrwpiAIrNf42Q+vXWGWMSUObfmLqgQwAYAhjH?= =?iso-8859-1?Q?qQbUJ/AVsgT/UcPyymRDvuPT85UQG9klSwF9TCInmg9rEZnCU/BoX6ckvT?= =?iso-8859-1?Q?YeMQsgif0WswNqGh3GGCOmA6ebUX28b+fYIBpJNl046VSvPw8GxMGcWlLs?= =?iso-8859-1?Q?g1SA3pgSbCSx3m2YEKopw0R2td3qbdb4zpP5CLw20g9Ieh2U6Fn2i2V63P?= =?iso-8859-1?Q?/2VcmzlSmR0n83nFDMLWryuW9mFeT49l5PoH6rcrC2JMBIyA7XBjzluuY9?= =?iso-8859-1?Q?eLkcnpydOgmoxk2TnquET3JJEm4Y/TewVy0GVNLP80J67EmP/3fOPhu0rt?= =?iso-8859-1?Q?+JO0VpSdTLbxEfB/GFriWvxkjVN6TmXEJLKn5ge0XnD9Cxkqv2JHIIDopO?= =?iso-8859-1?Q?09S/11eGyxPJeHSvv4qEeTSfKcPn6Cr9wrWtWHeiKbfRkImmVJYhdus61v?= =?iso-8859-1?Q?oFcprcWoIZlLQ/0Q0FNWIPLSm3nRgQ5ufpw4fAbC4KiKAo7/kSNmrWlKux?= =?iso-8859-1?Q?PCgWsSBJA3D6K6qM4XS3+uVpB3reBzaWbp66ch7kwTWHqzBr+m8HRxtXru?= =?iso-8859-1?Q?lc0SlIMHmD/9Qigm591kJBxE+0xDH4w9DqDpCCHuUDX/bpkMUzLhDX1Z0W?= =?iso-8859-1?Q?JUHGD2ngjNU/Z4HoEjiVwCpe5ExWlw2am6b/bVkhmy2C8opuBculgLub9I?= =?iso-8859-1?Q?ZlsYWs7ubzskmbmR89xq910?= x-microsoft-antispam-prvs: x-forefront-prvs: 0946DC87A1 x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(39860400002)(376002)(346002)(136003)(366004)(396003)(199004)(189003)(8676002)(2906002)(81166006)(86362001)(44832011)(50226002)(2616005)(11346002)(106356001)(446003)(68736007)(316002)(53936002)(476003)(81156014)(76176011)(105586002)(25786009)(486006)(8936002)(55236004)(14454004)(6116002)(256004)(4326008)(36756003)(3846002)(71200400001)(71190400001)(102836004)(66066001)(386003)(52116002)(6506007)(99286004)(1076003)(186003)(6512007)(2171002)(54906003)(110136005)(6436002)(7736002)(26005)(72206003)(478600001)(305945005)(6486002)(97736004);DIR:OUT;SFP:1102;SCL:1;SRVR:MN2PR04MB6062;H:MN2PR04MB6061.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: xin1Qd57C4u8AhARWRLcm1/CfZlNIqdCc++l6wv//0AtyB98DBQUWIIfQHu/OiURVoeXhDkHRuTASPNd0Y9nkS7IwDAC97Pn+qidYLehSszUCgk/dh4xgY4A0NQ7YmCPIPpcWq6apjcs6mln0iEv0Vsa7wXH9V8UWkPgpiAeqpoF79yN2hpSE5s0MJEPEglyp03j9mVw1UyqKvpZCYjDLy5hrF88eCpiaPdiieTjf2xowbZOQ6tQBumYxvGHh5h9pWQNzbIe70YOvzmPKGczLXeATFcmlxQtoUAoYzypTSC11KAkd0RuJ64X5Tf4LtuWJ909FE2OI1SnrEV0gwEK4QguVEN3I6Z37NOVpnikHnFGr+dL3tXWHg6LXJ3vBeZXEfvt96FPlBCE2vOhICNoeu22ApHmZhPJus7hwtKqgQM= 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: 246676c1-51ca-4d7e-bdbf-08d690f267b6 X-MS-Exchange-CrossTenant-originalarrivaltime: 12 Feb 2019 14:00:09.1711 (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: MN2PR04MB6062 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 --- 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