Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp10418654ybi; Wed, 24 Jul 2019 22:52:52 -0700 (PDT) X-Google-Smtp-Source: APXvYqzoByeJgGbLRuCzVLpQlHmpq8e8KejlgkF4W8HTmCFr7yD9MqTXVr8LeqtRLVazR7Cns+zW X-Received: by 2002:a63:1723:: with SMTP id x35mr83565806pgl.233.1564033972194; Wed, 24 Jul 2019 22:52:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564033972; cv=none; d=google.com; s=arc-20160816; b=Vzosj9WS83xAxEqSZ6AjBhylJIts0fdE1/9eYmTXF6rXjUp1LYQgijUwMFRP4wKXAu vKaDJCdVykGztFv3fh1rb0F4kozOiLy4gMxIHIfeiYh2dT7zFMrzgUQdRV1FpFnUCkg8 BoknR1Qz1RycT6caQw93bKy5XVrHhnr6ys97XTLGJruJJRN7lEQtMEEbHPOOAf6HO49Y 4psMBsyNfRdo+eTXKX43qhAd0KqlHOJM2ItAnlqBmLDscl7NZKt6B+KrwDpAKsEfn4Ek aPJGAgiUhFR/LcZdx3HC5uksX0eS+4Y4fjcWqc8ySRxajG+QaplujkqKk5hCoCSvDU4U azKg== 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 :in-reply-to:references:mime-version:dkim-signature; bh=Nrbk7bQLskXts/zN28tmN3yp8oUVQIhnquHI+u1+rrU=; b=S8Kg6LIRUg4BmaLyfrI4Cq4y7A2eSkX6B3mc0DHuW4qRPbDPW/pHhKaokaSOP7q6eM xawDL0XGTimJuumbhq3MpVKuRVsdrOqGhltHsEfNa2Ork/k386LcgGqZtUkydh1c+CsE ReQCyFnkekWsf63HWOCEc/cja0GJejSt1bDQOlenEWiirAr9xX/Oi41291M79Zn0Lf5N BB8TepdAJCE7LzHsIFiRYS3LV6fSmzK5a5mxLeiWPLDHQD7DWld0zQr+WLdV7jCIrfoB aGwaMqic1ucf86MjH4KUlsCoaUjqXcG70HJrv+Xv23qgY0dUma3+BLYBCTEaqS77mCI0 /OSQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=P2FV77oa; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s62si14261289pjc.75.2019.07.24.22.52.37; Wed, 24 Jul 2019 22:52:52 -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=pass header.i=@gmail.com header.s=20161025 header.b=P2FV77oa; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389571AbfGYDEb (ORCPT + 99 others); Wed, 24 Jul 2019 23:04:31 -0400 Received: from mail-yw1-f66.google.com ([209.85.161.66]:34285 "EHLO mail-yw1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389521AbfGYDEb (ORCPT ); Wed, 24 Jul 2019 23:04:31 -0400 Received: by mail-yw1-f66.google.com with SMTP id q128so18804336ywc.1 for ; Wed, 24 Jul 2019 20:04:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=Nrbk7bQLskXts/zN28tmN3yp8oUVQIhnquHI+u1+rrU=; b=P2FV77oa65p+uZuWlQRKhCU+fsKjGfcfvFEmoKLqa5om2N7vSy9QKvqy13EdjCOFsb wd/+JuIsqBO2sarMfxgkzGx1upakvFLfYNtbutK8plfj2/7ik3D7z+BHmVI65H36YFY2 Qu+ZhwwkZq2nCOoIqSFSRpJW1Y0o1+qkep75SeTDA7tnHl6VFTEBy/FO5IGUaP+hXl73 oS4+HM4o9kGYjbUPmZppvpXvGNQd9WS9jWvuxStpLHoZuB6Z3xpL8nkzM0BcBdmSSyN6 EqOfM38IoiG7xH/q+8RDJ4CNw3LhQ2OoFArHpQg88IlCaJ//Tx4Kv+qu2vmMcJweWjvW nq0w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=Nrbk7bQLskXts/zN28tmN3yp8oUVQIhnquHI+u1+rrU=; b=L2ImqATfXBCnn5G37bftVVhZ9vEExwxDvPYnRkfbSSRTzatBlGb/wbOmX6rB8sxQoQ 0VGqLelnbH7S/Xqes9Pq5+JCXG3oKWGtIJA/zzcxGNvXIMye1fslBMs43O7bqYc8rwmN XZCHpEXGjGH+7Vh0fPO91zfDNWZAt9ktpxvo7ZWwQkxqrz8zS4pRUZid0QwoQwecPckj EcXABtKyVzKrKCGS7aOOcOktNXXUIyHBjnXO6yzgx7dxZJLqyxcE2wLk76XGG4Crp1H4 6nLMJLfKFZ+NJ58XwyJmoE6CQpB37lVIaefXRiKo7vqiHpx+LvINe+4saXwoZpmKvneK iktw== X-Gm-Message-State: APjAAAWx/1cooUMpN95pXQSGL6gbBSc2rP6rqYm/nm4++An9IbH0fJvi c71wspCXc/C3VNigADdqRxgwzr8ccq6au0pY7QI= X-Received: by 2002:a81:6d07:: with SMTP id i7mr54324963ywc.112.1564023870299; Wed, 24 Jul 2019 20:04:30 -0700 (PDT) MIME-Version: 1.0 References: <1563977432-8376-1-git-send-email-rppt@linux.ibm.com> In-Reply-To: <1563977432-8376-1-git-send-email-rppt@linux.ibm.com> From: Max Filippov Date: Wed, 24 Jul 2019 20:04:18 -0700 Message-ID: Subject: Re: [PATCH] xtensa: remove free_initrd_mem To: Mike Rapoport Cc: "open list:TENSILICA XTENSA PORT (xtensa)" , Chris Zankel , LKML 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, Jul 24, 2019 at 7:11 AM Mike Rapoport wrote: > > The xtensa free_initrd_mem() verifies that initrd is mapped and then > frees its memory using free_reserved_area(). > > The initrd is considered mapped when its memory was successfully reserved > with mem_reserve(). > > Resetting initrd_start to 0 in case of mem_reserve() failure allows to > switch to generic free_initrd_mem() implementation. > > Signed-off-by: Mike Rapoport > --- > arch/xtensa/kernel/setup.c | 9 +++------ > arch/xtensa/mm/init.c | 10 ---------- > 2 files changed, 3 insertions(+), 16 deletions(-) Thanks, applied to my xtensa tree. -- Max