From patchwork Sun Apr 1 14:59:29 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shea Levy X-Patchwork-Id: 10319171 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id AE79A60375 for ; Sun, 1 Apr 2018 15:00:53 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9E9852904D for ; Sun, 1 Apr 2018 15:00:53 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9209629051; Sun, 1 Apr 2018 15:00:53 +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=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4778C2904D for ; Sun, 1 Apr 2018 15:00:53 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753742AbeDAPAk (ORCPT ); Sun, 1 Apr 2018 11:00:40 -0400 Received: from smtprelay0238.hostedemail.com ([216.40.44.238]:37755 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753731AbeDAPAh (ORCPT ); Sun, 1 Apr 2018 11:00:37 -0400 Received: from filter.hostedemail.com (clb03-v110.bra.tucows.net [216.40.38.60]) by smtprelay02.hostedemail.com (Postfix) with ESMTP id 51F7783E7; Sun, 1 Apr 2018 15:00:36 +0000 (UTC) X-Session-Marker: 7368656140736865616C6576792E636F6D X-HE-Tag: shoes83_7997363f2ab4c X-Filterd-Recvd-Size: 1793 Received: from localhost (c-71-235-10-46.hsd1.nh.comcast.net [71.235.10.46]) (Authenticated sender: shea@shealevy.com) by omf12.hostedemail.com (Postfix) with ESMTPA; Sun, 1 Apr 2018 15:00:35 +0000 (UTC) From: Shea Levy To: linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org Cc: Shea Levy , Yoshinori Sato , Rich Felker , linux-sh@vger.kernel.org Subject: [PATCH v6 15/16] sh: Switch to generic free_initrd_mem. Date: Sun, 1 Apr 2018 10:59:29 -0400 Message-Id: <20180401145931.7932-15-shea@shealevy.com> X-Mailer: git-send-email 2.16.2 In-Reply-To: <20180401145931.7932-1-shea@shealevy.com> References: <20180329113207.30674-1-shea@shealevy.com> <20180401145931.7932-1-shea@shealevy.com> Sender: linux-sh-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-sh@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP The first patch in this series added a weakly-defined generic implementation, which is functionally identical to the architecture-specific one removed here. Series boot-tested on RISC-V (which now uses the generic implementation) and x86_64 (which doesn't). Acked-by: Rich Felker Signed-off-by: Shea Levy --- arch/sh/mm/init.c | 7 ------- 1 file changed, 7 deletions(-) diff --git a/arch/sh/mm/init.c b/arch/sh/mm/init.c index ce0bbaa7e404..7451459d0725 100644 --- a/arch/sh/mm/init.c +++ b/arch/sh/mm/init.c @@ -477,13 +477,6 @@ void free_initmem(void) free_initmem_default(-1); } -#ifdef CONFIG_BLK_DEV_INITRD -void free_initrd_mem(unsigned long start, unsigned long end) -{ - free_reserved_area((void *)start, (void *)end, -1, "initrd"); -} -#endif - #ifdef CONFIG_MEMORY_HOTPLUG int arch_add_memory(int nid, u64 start, u64 size, struct vmem_altmap *altmap, bool want_memblock)