Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3754969imu; Mon, 7 Jan 2019 08:52:30 -0800 (PST) X-Google-Smtp-Source: AFSGD/WzyZC81SVWOklDCAniZf06NX9bnwlSXSq/2L8+Yu2ODJLyuE+4t4z77yvWT74yG+ohaPoB X-Received: by 2002:a62:5884:: with SMTP id m126mr63571376pfb.177.1546879950776; Mon, 07 Jan 2019 08:52:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1546879950; cv=none; d=google.com; s=arc-20160816; b=XHCZKAAMO74QdBVtXylN9bX8FvdvnRO+cMVatB0Ppl+dcMYYl63SFCenbPqFc9X+G6 lJlej7No37nQp1zZTTb8pnCREW9mannLJ29f3kTNnaU572DmF+KWT4/058dt4Cj1MtoP t+2fnR61QZgyaGDvbREHZ/XWAv/un5u+um8ilCOgCIIXG+8OF1G5YLNiv0KLPcKryqqU YRPpkuCBk2K8Q7nrtLT+RcKwhX/3ZCs3XusP5Svx4F7ANrqz3ncSOSx02zW0mV48FJsE npUmFok7X0kDTgWp0XnUdSddOS7RTLKSocpLdruVBSlJf7cL5q3Z+3hl3fHSuhgfuucb XRnA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=ZaKrDnHRaJTR4IomjvSGKZD1Tygses0EL569fMSHM94=; b=LrZ+ThfyOyBZ/XasRUqULOmXTUf+/pWsp3ULngmVItVsb4mr2oECtwshXR1zsvNZbE VXDhnAbY0RvnRvy1ewAkTRAIxATEzAY5QIfnGcjqfryqkA9Q+z8jfvfpXOl8y11POsrZ ZM588qf7QgHkuGSIibQ3m4SiNPKDvM7lvUJnZSa/+QSaH2+Mdv20lA+nHRfpoFO9L+V/ zaxTB1YPGt1LX6Wnpu/m0QxnmJUT/iegJoNRObz2iS6suamYwoXj89EghYzjrZa7J9rO emoy7x1qGGDCnxamXG9sLsKh0n2C0QMQYAxVfkdwpXJni//iDLMR+rkjbHmON3ACg7Of gPVg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@brainfault-org.20150623.gappssmtp.com header.s=20150623 header.b=Zgngd4Gp; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x15si64093729pgq.378.2019.01.07.08.52.15; Mon, 07 Jan 2019 08:52:30 -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=pass header.i=@brainfault-org.20150623.gappssmtp.com header.s=20150623 header.b=Zgngd4Gp; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728775AbfAGQLP (ORCPT + 99 others); Mon, 7 Jan 2019 11:11:15 -0500 Received: from mail-pl1-f196.google.com ([209.85.214.196]:40355 "EHLO mail-pl1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727002AbfAGQLO (ORCPT ); Mon, 7 Jan 2019 11:11:14 -0500 Received: by mail-pl1-f196.google.com with SMTP id u18so353320plq.7 for ; Mon, 07 Jan 2019 08:11:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brainfault-org.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=ZaKrDnHRaJTR4IomjvSGKZD1Tygses0EL569fMSHM94=; b=Zgngd4Gp1H53m2Qe2zWQk2wO398PgVsT+ZHTKDh2XRITX1i06Er7yGFYAiP+zpw5FU Q/Kh0e6hxjZoyhW2SaLvccSWEkEcqSvbtNgL5kAOkOLiDZJJzqjrCoMwisjTvCo/SEkg FdXFLX0HKo2GPFosJVUGacQgbw1M77h9a5nj8L7OJlt0g7+oz++zZM8Z8XU4EIOx4jVB dP6sCPCe2aaGQOw8o2TeT4ckoUeG4rRDT/hHO4vfyfLW7VbtpxhIYm3tN6bHymNdufd7 XIxAUFy3gI9QLnGPsHGmZAcp0qtdGaayFfgv9f66X1htuvACphEbwLW89litgLS9Rzuy /kWg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=ZaKrDnHRaJTR4IomjvSGKZD1Tygses0EL569fMSHM94=; b=TjyID1UbpnWULMVtiVRQ4xxfqNzMyNJo2MPh28bnZ9WhCW+Ab/drNZN9DHTJ5LIxnV k2U/Sw5hzVVsUOjvuYE9QfAeEHO6q6enXV1mv3Qf4WGmI8EPm4TqjgGVM/sUrSMWZgDw 0qPmdR6/BdRC5CeC8SNv9X0kN4N9RngjdSpXAtX54oj5JgRntedTybHPx6uATPY+d5nZ Tg8paNMAgeZQGn4MMDmGgHh+FZqA0ScIFJpdr6JVFagXIOQozcripAacIXI5P0mue9Gx Dr+meYcUXKreg/LaQngxcSRKbVIcbORaS/+xsWqGAPR9Tax+DYJ3nKzFxxjrpqOMOeG9 ph5Q== X-Gm-Message-State: AJcUukeXFAighenrBF/NFnhgENiioiid2OrSb2mBW/LN9TOtejTDHAhm 8rqEphKbrXb3aroxrxI7n6PZKA== X-Received: by 2002:a17:902:6bc7:: with SMTP id m7mr62838655plt.106.1546877473820; Mon, 07 Jan 2019 08:11:13 -0800 (PST) Received: from localhost.localdomain ([49.207.48.214]) by smtp.gmail.com with ESMTPSA id a10sm93243512pfi.138.2019.01.07.08.11.10 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 07 Jan 2019 08:11:13 -0800 (PST) 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 1/5] RISC-V: Move free_initrd_mem() to kernel/setup.c Date: Mon, 7 Jan 2019 21:40:43 +0530 Message-Id: <20190107161047.10516-2-anup@brainfault.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190107161047.10516-1-anup@brainfault.org> References: <20190107161047.10516-1-anup@brainfault.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Anup Patel We move free_initrd_mem() to kernel/setup.c so that all initrd related functions are in one place. Signed-off-by: Anup Patel --- 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 fc8006a042eb..64646d0b4d53 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 = 0; initrd_end = 0; } + +void free_initrd_mem(unsigned long start, unsigned long end) +{ +} #endif /* CONFIG_BLK_DEV_INITRD */ 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 1d9bfaff60bc..f354486f9b78 100644 --- a/arch/riscv/mm/init.c +++ b/arch/riscv/mm/init.c @@ -14,7 +14,6 @@ #include #include #include -#include #include #include @@ -63,9 +62,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 */ -- 2.17.1