Received: by 10.213.65.68 with SMTP id h4csp841940imn; Sun, 25 Mar 2018 15:23:02 -0700 (PDT) X-Google-Smtp-Source: AG47ELuUsUViiQQpKTD24IpitIsuXZoRXDqp9hU2TCaBNykBaKWRLcFe9MKoMzi4HPMPNAeC5Bjp X-Received: by 2002:a17:902:59c9:: with SMTP id d9-v6mr38635258plj.251.1522016582011; Sun, 25 Mar 2018 15:23:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522016581; cv=none; d=google.com; s=arc-20160816; b=oxrn8dsygW7VXR/ujbz89nt3r30VpcciLxTyLxA5X951CRoR7cH1rIA3Occ6MLlQdu QLzt4af/ho0eMdBGuv0k51SlRj+sQDJ9JGpj2IrppC4AkxtcnjkSoMHlCwomzWxNyaMg DXUdIJrq3CizL4Qqdf1rhlNU0+aT+yHQVR37FTIc281Vo4Vwz6t1+W4tnK5BaedrteQR bkqMGO8OImVPoJt70q39D9pOMQkc1lCXfbwME57miA0fLiVgkP58G4sHRavMSFUEPhTI BFYVvI6YoKJVa4VoRAY9n+mtLpTsRb5lSDHCboN7SKozKPbGooaRhcHtmkxNcoZaCkos w4VA== 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=y4Qdba9fXovoIfkapuNeLkK+yM/cm8jXryEqXbdh09w=; b=oQn2Yusyd/vyWEKuilxcP31WkVtg9ewMWJpOtBONYyn/gXdGf1vTl8JZGVvWDkhZZM XJ1kbvI0UJzRD06Ho8PbPzqhb0uH1+RvVLiOrtQxy0MgbeLscI0S73BqHl+dNYdOupVC e7VjwWCzuxQauf6CjyjrkWY8qILeTmxc0wJp73Ae3lBtyG/OyEQs43OtLml/zKZN0UxN JljkpgE8avsxJG5geyK3PxZkCxLmMRIiNFodT7XDtByY1o1yB5yeXnuGE7GkxXW7q+DI diPB8aoDFhXyO2CvBNYXe1zWuu+3nWGTUcb2H6jm0hR2kDMF5mAznxzutwWEJAqXWFO3 GkoQ== 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 x3si9440723pgp.298.2018.03.25.15.22.47; Sun, 25 Mar 2018 15:23:01 -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 S1752611AbeCYWT6 (ORCPT + 99 others); Sun, 25 Mar 2018 18:19:58 -0400 Received: from smtprelay0200.hostedemail.com ([216.40.44.200]:58677 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752314AbeCYWTp (ORCPT ); Sun, 25 Mar 2018 18:19:45 -0400 Received: from filter.hostedemail.com (clb03-v110.bra.tucows.net [216.40.38.60]) by smtprelay07.hostedemail.com (Postfix) with ESMTP id 7F3E3181D3419; Sun, 25 Mar 2018 22:19:44 +0000 (UTC) X-Session-Marker: 7368656140736865616C6576792E636F6D X-Spam-Summary: 2,0,0,,d41d8cd98f00b204,,:::::::::::::::::::::::::::,RULES_HIT:41:355:379:541:800:960:966:973:988:989:1260:1345:1359:1437:1534:1541:1711:1730:1747:1777:1792:2194:2196:2199:2200:2393:2559:2562:3138:3139:3140:3141:3142:3352:3868:4250:4321:4385:5007:6119:6261:6737:9592:10004:10848:11026:11473:11658:11914:12048:12114:12296:12438:12533:12555:12895:12986:13069:13311:13357:14096:14181:14384:14394:14721:21080:21451: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:1,LUA_SUMMARY:none X-HE-Tag: chess68_37c20e81a2032 X-Filterd-Recvd-Size: 2090 Received: from localhost (c-71-235-10-46.hsd1.nh.comcast.net [71.235.10.46]) (Authenticated sender: shea@shealevy.com) by omf13.hostedemail.com (Postfix) with ESMTPA; Sun, 25 Mar 2018 22:19:43 +0000 (UTC) From: Shea Levy To: linux-alpha@vger.kernel.org, linux-kernel@vger.kernel.org, linux-snps-arc@lists.infradead.org, linux-c6x-dev@linux-c6x.org, uclinux-h8-devel@lists.sourceforge.jp, linux-m68k@lists.linux-m68k.org, nios2-dev@lists.rocketboards.org, openrisc@lists.librecores.org, linux-parisc@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-riscv@lists.infradead.org, linux-sh@vger.kernel.org, user-mode-linux-devel@lists.sourceforge.net Cc: Shea Levy Subject: [PATCH v2 16/16] um: Use INITRAMFS_GENERIC_UNLOAD Date: Sun, 25 Mar 2018 18:18:53 -0400 Message-Id: <20180325221853.10839-17-shea@shealevy.com> X-Mailer: git-send-email 2.16.2 In-Reply-To: <20180325221853.10839-1-shea@shealevy.com> References: <20180324174458.26423-1-shea@shealevy.com> <20180325221853.10839-1-shea@shealevy.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Signed-off-by: Shea Levy --- arch/um/Kconfig.common | 1 + arch/um/kernel/mem.c | 7 ------- 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/arch/um/Kconfig.common b/arch/um/Kconfig.common index c68add8df3ae..1cb8a023938b 100644 --- a/arch/um/Kconfig.common +++ b/arch/um/Kconfig.common @@ -13,6 +13,7 @@ config UML select GENERIC_CLOCKEVENTS select HAVE_GCC_PLUGINS select TTY # Needed for line.c + select INITRAMFS_GENERIC_UNLOAD config MMU bool diff --git a/arch/um/kernel/mem.c b/arch/um/kernel/mem.c index 3c0e470ea646..2d26eec92126 100644 --- a/arch/um/kernel/mem.c +++ b/arch/um/kernel/mem.c @@ -170,13 +170,6 @@ void free_initmem(void) { } -#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 - /* Allocate and free page tables. */ pgd_t *pgd_alloc(struct mm_struct *mm) -- 2.16.2