Received: by 10.213.65.68 with SMTP id h4csp360066imn; Wed, 28 Mar 2018 05:08:35 -0700 (PDT) X-Google-Smtp-Source: AIpwx49zAGtrmxNCE5gxm3rRJDNvhc1bo+3U8qo8p3E2paXVTnmqNVI31FQSn3/vEUzLJZlwupg2 X-Received: by 2002:a17:902:2f:: with SMTP id 44-v6mr3558835pla.187.1522238915690; Wed, 28 Mar 2018 05:08:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522238915; cv=none; d=google.com; s=arc-20160816; b=niUefJZKzaPwZKGSzjrKnll9eDTjv7+at6YHyIkoILG+gGNH1GlEk24wb1M50dKQu+ h0B1xPULCHlrtzip+s1rJcb2j9CES1MlZUWUvhVdgspEiRr0/CZjEE9ztFAkIl4Ilfcm jq9Hl1NidnfrJHHi07pD1khgCrZWHZ7hawGIg17m99ufEX0Z8eEn/SC+eNxSiNze5vI9 9q5L0vZmFmaUmQLubIam85hi6KWWzpPv9hlVbQZgPVjrsmZug2tgSaG0KIZithq31mZu xYY0ngxuXXydBYTwZfhTg69wkOW+6rOWFDsfusoH9+erVAR3T5aH8ZTl/yJ8J4quRyQU lOLw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=AidznmoG5V4HUtC553ln4hJOBWHY84cyUb94Fbl2etM=; b=P6T9MZvbZ6EJCyzl7wO557cO87FDHI2ZAtuBRu1DUMo8+HnHjdKNkOfX8ISg5qN3ZC anm10LsjGZ5ghJlcolAtmunYJvWAZGAu1VSGt/KqomG3pEkUc7kG5KlmbJ58dUetM7Ib T6n6xDjOPIma6eIi8BgKS23rmkouAinB8jrOQiqgCGhdILo+oijL2QnOBtJLu4LrXBlT UdzLrP/GSXdVcnwoR7WUSe8W+tQkKCs6wCwN4v4Jc1wSLvDWgXLa9wjcO62N7DkYeM3w 5DX4B8j1KrIJlpDmB4/US8owqBnwWOCcM+tGEycWIVjBOwv/GRJu58o0d3BR0AISXl1f dBNw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=Kf5aKHOE; 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 u6-v6si3527412plz.64.2018.03.28.05.08.21; Wed, 28 Mar 2018 05:08: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; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=Kf5aKHOE; 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 S1752561AbeC1MEp (ORCPT + 99 others); Wed, 28 Mar 2018 08:04:45 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:47314 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750774AbeC1MEm (ORCPT ); Wed, 28 Mar 2018 08:04:42 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=AidznmoG5V4HUtC553ln4hJOBWHY84cyUb94Fbl2etM=; b=Kf5aKHOEvS8cHYMEU0A9P5hb+ Vc2gIPJjVOTVVnggdwU/VvzImBBpG6fKywe2NSMWFq7bCrmI8bKPNbZ8pajTvx/xxmoIoSdeXA/ef XJp+HQANXf9leTIuA/k1rGaYcPmIrXaNFCLJzoFSU+jtL7gGzjBikVsaji4uJzQcjgtDCurkunA1I 0/bKZeL4pAma0ec1hoRhW65YOEQT4P3RGOug2TUEl5LgJQTLMtLza1w7c3De+F1TZ+453UXIwJ05T bJwt8n/WETlH9uAnvFPzePbIltS/c4qfVtwPTbzJ6ffZOko4T32gc9GFTU8TEWBtzqP5Ia3AsM4to 0GEzEhL3Q==; Received: from hch by bombadil.infradead.org with local (Exim 4.90_1 #2 (Red Hat Linux)) id 1f19om-0003Ev-78; Wed, 28 Mar 2018 12:04:40 +0000 Date: Wed, 28 Mar 2018 05:04:40 -0700 From: Christoph Hellwig To: Shea Levy Cc: 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 Subject: Re: [PATCH 01/16] initrd: Add generic code path for common initrd unloading logic. Message-ID: <20180328120440.GB1838@infradead.org> References: <20180324174458.26423-1-shea@shealevy.com> <20180324174458.26423-2-shea@shealevy.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180324174458.26423-2-shea@shealevy.com> User-Agent: Mutt/1.9.2 (2017-12-15) X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > +#ifdef CONFIG_INITRAMFS_GENERIC_UNLOAD > +void free_initrd_mem(unsigned long start, unsigned long end) > +{ > + free_reserved_area((void *)start, (void *)end, -1, "initrd"); > +} > +#endif Given how trivial this is and how many architectures can use it I'd reverse the polarity and add a CONFIG_HAVE_ARCH_FREE_INITRD_MEM instead.