Received: by 10.213.65.68 with SMTP id h4csp1527943imn; Sun, 1 Apr 2018 08:03:35 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/OW6FZTvPULmnjO8JUZH3OlgvYsVAQaYWT8AiR5F4YZ23OhIe2FYjwrLbZ3iKTPohGgAd1 X-Received: by 10.98.87.151 with SMTP id i23mr4795775pfj.175.1522595015350; Sun, 01 Apr 2018 08:03:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522595015; cv=none; d=google.com; s=arc-20160816; b=VM7oRxvWyU+PEv03lFjgoWHmZPuOrZAK8vEGhS33zYo8pb8Hr38dzRbEfvxB6MlKfU kJV546U0t3E2T9ZPd+jBTbF+UKAVqIRsKkC0rawcjHge7ct4U8j/f6tGS/+Jdh8g4LIh gVm7vBtg9rxQos96Yr99IrzyTUyMlbK3K9h/Ii8VeThRzfmEYEoVLUEE2XFutXNsphxB Min/NJfAZ0acC1ps15TGMfDB0Kvc5DsPJlu6zyAfxc5r5dlkz+XAA5eCTErDUeoZbel+ HKnX8neO6Jp2izVPLhLMQ9bVkw32sjCL4bxUrLvW3KT3ZacPL/+NIAzVozKqvB8a+hwV TwYg== 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:arc-authentication-results; bh=MJXavmXNeTq2QUxsJwmhLwaZJPhG5XGeEs6Ti1KV9S0=; b=lB/F9ds8a5heM2Z89t08cbZ7IfSDHezNMioYSPqCjMvlZ96C4asDO6kJeUb2GKlbog mZGyqyPAgB6JpRzwx+nuGc74rdh94llVN4NXMl6hUJHiJGDUbhWbQxoBxgYjH0/y72XE Pv4rO0AlmdKp36vOE/0T6A2UVXbzfMGgOxTq2v9JvmsxjJwx1sVV23Fgxa7iSi6w3Jiv qA9B6RkAu6bZYINqHjo2yHX8ygh7vY+PIv+Y2aJS+yXynmE/sPBPEMda46R5eSki6t1O K+ShLi+HGM61ng3Oc0ZtXhdu0RUzpnmF/fzZToZnU+Wq9A+XmSynV3GXxT1JOUbu7Q8w aFVw== ARC-Authentication-Results: i=1; mx.google.com; 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 134si8529357pge.565.2018.04.01.08.02.57; Sun, 01 Apr 2018 08:03:35 -0700 (PDT) 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; 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 S1753752AbeDAPAl (ORCPT + 99 others); Sun, 1 Apr 2018 11:00:41 -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-Spam-Summary: 2,0,0,,d41d8cd98f00b204,,:::::::::::,RULES_HIT:41:355:379:541:800:960:965:966:968:973:988:989:1260:1345:1359:1437:1534:1540:1711:1730:1747:1777:1792:1978:1981:2194:2196:2199:2200:2393:2559:2562:3138:3139:3140:3141:3142:3352:3865:3867:3868:3870:3871:4321:4385:4390:4395:5007:6261:8603:9592:10004:10848:11026:11473:11658:11914:12296:12438:12555:12895:12986:13069:13161:13229:13311:13357:14096:14181:14384:14394:14721:21080:21627:30054,0,RBL:71.235.10.46:@shealevy.com:.lbl8.mailshell.net-62.4.0.191 64.201.201.201,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:ff,MSBL:0,DNSBL:neutral,Custom_rules:0:0:0,LFtime:19,LUA_SUMMARY:none 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-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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) -- 2.16.2