Received: by 10.213.65.68 with SMTP id h4csp374124imn; Wed, 28 Mar 2018 05:25:22 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/1XgAi4AnDOVrVCE4EVEePn8tm0+V7WmdJXg0fO5xhqplML5s1Hho2HipWqRu3z1EXp4tU X-Received: by 2002:a17:902:8213:: with SMTP id x19-v6mr3610314pln.371.1522239922053; Wed, 28 Mar 2018 05:25:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522239922; cv=none; d=google.com; s=arc-20160816; b=T1PwyiISUnPC/krdNl7CwazGFAZnzgOxPs7BfFutUpwy0Obq9IA9j1l++ui80OKgcP EcgMe45HvFaHE9Dc+gxcsRo4JRd7lfkO5QDlmWP2Ti76YJjcAiSfEvfwPq1vuR+kPY+2 Jb/CWK9vpY/N05dCQjmI+dqLjAcQG1Z46sHmn0MbxJNBBh6XOjAlq4JD9WS5RNH+veID EnW/HAmqmRsAA2Zio3pnICIm4/sL1z5E2V4MGKCfAootdOLrQUvyH7yIerHSijvXIY5d FwYftQD16QwcNcgvvoqclfEUit2D+ELFIpRng9Eaa8ruzdA7mVIc9ljeCCfZFDHsrttJ UUew== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=9RoS2A4VPsD624bAXH71eygUNzAQ2PXT9/E5Gc0ueqs=; b=L1hlATdbBzE2GFXsQ4l3JFHvqRBrSZ4P6GJQAnfthiWhhlXzTGhGPJaMHoJyXOTJTp XHNRjmw6BJhaL7dxZOiVPu/YDxsRpMe5iLhQVpdZ/HPyyrZV+uoCIQHm3+LhLaQIflrL e9bdz/fNykc/L7o4rr9cdH+sAqR2vD7nuDzlujxZ4AOjoGIT/6poK0zoLM3rIwdi2QpJ 6C2Zn5hHac4ZFlTDVciZNFZBy0kOsmrKrecb4YA8/65RdWkJMxFmB7/HnaEFU+WXRRlJ yuHs5sjV+tRUtJkpzKHUB3ZmisdsEzkzXxfDC4vLIJvrjYMK7zEyljOIEfUX1TTKdngm 9unw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=U2wbnIEl; 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 e9si2378882pgo.622.2018.03.28.05.25.07; Wed, 28 Mar 2018 05:25:21 -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=@gmail.com header.s=20161025 header.b=U2wbnIEl; 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 S1752364AbeC1MXw (ORCPT + 99 others); Wed, 28 Mar 2018 08:23:52 -0400 Received: from mail-qt0-f196.google.com ([209.85.216.196]:43981 "EHLO mail-qt0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750799AbeC1MXs (ORCPT ); Wed, 28 Mar 2018 08:23:48 -0400 Received: by mail-qt0-f196.google.com with SMTP id s48so2261209qtb.10; Wed, 28 Mar 2018 05:23:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=9RoS2A4VPsD624bAXH71eygUNzAQ2PXT9/E5Gc0ueqs=; b=U2wbnIElXcq8Y2XhTsBPRovgTxzsmrAtyMWP87/33ezXtjx2yWSsBnWaxYTtS0i+F4 KCwK44sah3nYofnLaQH6vpZ85pSBTnyhhEqddKoI5YYFxIv0RotYO0mpdmmymMpBMdA/ ifEOOJZJ1EdZQt/ERXeugf5C3LXAoVd5E2aVZUN7mMGltzYDKN+/JFL+Sh4fFUPRKCVv 5mftfoX+qbsMzhlipdeiQc/ewazKizuBwPph649agSA34W596wrhtBsA+zJy4l2rcuon 4ZA00CwEMD1C/ij/gYJSID5sugD6C/CkdJ9gz4QQqCzUqR8CDYZOY37v9JRHK7RI8Y7S ISrA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=9RoS2A4VPsD624bAXH71eygUNzAQ2PXT9/E5Gc0ueqs=; b=KqDlY2xvqwudYPk2C3clAjZy0Ljk0CMXoKmp1be9h4blxR9JGiAjXlVjJ2milTFFUK lObcWG83UkPSN0Y8I/F4Whg2fhUj3XzRgqFWXoZow5x79npaed2sYl1Q9QY3itIIzI9P 9BMEs2Kw4kTZpQ3+9r2XixVnErM0exil90RCeTP1rsGV7aBhstPMwDgh+EPpYPFszyfc KS5u8brH+jwJ5EjV4V/lUyn0ML+7BPyDW5uN+4z/tm/Fz9US2tK+p9xo77A8DyGL7SaK LUGFctnO+OrR7wIHExc28maNIqaF3KB3MatPTh0p+y8xNAdyu3Ko8nEXKg+o8mXL0cGz Tf4A== X-Gm-Message-State: AElRT7EXASFeaIvkloMnkalWoFq9EfzsZuKtAEr3sb5rJ/NCUMqLHApM 0FtdJKlcaSmyAH7besgySEqUigULhznNZ+EQv8w= X-Received: by 10.200.27.3 with SMTP id y3mr4949151qtj.161.1522239827630; Wed, 28 Mar 2018 05:23:47 -0700 (PDT) MIME-Version: 1.0 Received: by 10.200.54.147 with HTTP; Wed, 28 Mar 2018 05:23:47 -0700 (PDT) In-Reply-To: <20180328120440.GB1838@infradead.org> References: <20180324174458.26423-1-shea@shealevy.com> <20180324174458.26423-2-shea@shealevy.com> <20180328120440.GB1838@infradead.org> From: Geert Uytterhoeven Date: Wed, 28 Mar 2018 14:23:47 +0200 X-Google-Sender-Auth: YPB-fm2qaR066Y_xUJn7hHxFXxM Message-ID: Subject: Re: [PATCH 01/16] initrd: Add generic code path for common initrd unloading logic. To: Christoph Hellwig Cc: Shea Levy , alpha , Linux Kernel Mailing List , arcml , linux-c6x-dev@linux-c6x.org, "moderated list:H8/300 ARCHITECTURE" , linux-m68k , nios2-dev@lists.rocketboards.org, Openrisc , Parisc List , linuxppc-dev@lists.ozlabs.org, linux-riscv@lists.infradead.org, Linux-sh list , uml-devel Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Mar 28, 2018 at 2:04 PM, Christoph Hellwig wrote: >> +#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. And while adding "special" functionality to the generic version, more and more users of CONFIG_HAVE_ARCH_FREE_INITRD_MEM will be removed. Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds