Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp4442951ybi; Mon, 3 Jun 2019 10:56:38 -0700 (PDT) X-Google-Smtp-Source: APXvYqwf4ZnnUAh7kEgDxLjHEnUxM060KsK33Sga0FF8Lx95IyCcZeI931hjc+3f6yuslB+eY9oQ X-Received: by 2002:a62:5e42:: with SMTP id s63mr31935237pfb.78.1559584598428; Mon, 03 Jun 2019 10:56:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559584598; cv=none; d=google.com; s=arc-20160816; b=aV1b8wM/a+Mw8QVVtCP731Yma4hQ/EX1bxHfnE96by7ejgNFrhp/qEgKIikfa3iffY +URctNqlJtfZUb8HPLiNF405ql+Kgql1INgA1MAS0pcfEST9RpIQfx6s82UOiQrNbNoZ rRx3ln1e7/rYgn2tFm7sllOYFJbVlygL9G1RSimMtzvB5IuCKwSeY5jz48+Jb59eU2Xy Bqdzeir47Mm3OXWkEHe0CYN8Xwr2TSiZCmlBS9RLSx5YcJDCg/qnXF1jA2zwo0VN89er xHA4WfixtdxjRVSA9aWVOybXj2bo1B6nhgrA5HiGzpRwlW8XxtwzdzFcbtxKCeLvZZ7R GD1g== 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; bh=u8SsYFeE3hKeoKJSi9KrLYWzElpn5LoQahXQCpaXe/Q=; b=e7TbjAr6h3lp7GtNz7dMxkwljF34cNni2ZkXdDV4vqGvsak8f8qlSnmltZ7TqCAipd v1PyNwhHSx3HTyHFlo2Tdg06ln4Wx5LNcLlGs/KmU8hGhDn/YUBZLcdg/ZE5uqWXu1OO RQpUc8rUt/Khw/svPF4TSpokTQcnN3clRW+Nl/AwZYx2ygqK9Kq+j60F7czvVM18FveF +DaDXTRwWQSRS7t7pIVFV8V7uuVIfP/nF3dVtYLL3CZhIsPrjgB8o5IuyxtVQLO4zBHr lfBcwsf2WI2YAPoHv2x+hQ9ydOALf6soRhqIFuucPb6bndVrji0ZYrB5dJM9gQMG3yeA LoDw== 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 w28si5400777pgl.218.2019.06.03.10.56.22; Mon, 03 Jun 2019 10:56:38 -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 S1728127AbfFCRiq (ORCPT + 99 others); Mon, 3 Jun 2019 13:38:46 -0400 Received: from usa-sjc-mx-foss1.foss.arm.com ([217.140.101.70]:56822 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727159AbfFCRip (ORCPT ); Mon, 3 Jun 2019 13:38:45 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 49D1780D; Mon, 3 Jun 2019 10:38:45 -0700 (PDT) Received: from arrakis.emea.arm.com (arrakis.cambridge.arm.com [10.1.196.78]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 0FB323F5AF; Mon, 3 Jun 2019 10:38:41 -0700 (PDT) Date: Mon, 3 Jun 2019 18:38:39 +0100 From: Catalin Marinas To: Alexandre Ghiti Cc: Andrew Morton , Christoph Hellwig , Russell King , Will Deacon , Ralf Baechle , Paul Burton , James Hogan , Palmer Dabbelt , Albert Ou , Alexander Viro , Luis Chamberlain , Kees Cook , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mips@vger.kernel.org, linux-riscv@lists.infradead.org, linux-fsdevel@vger.kernel.org, linux-mm@kvack.org, Christoph Hellwig Subject: Re: [PATCH v4 04/14] arm64, mm: Move generic mmap layout functions to mm Message-ID: <20190603173839.GK63283@arrakis.emea.arm.com> References: <20190526134746.9315-1-alex@ghiti.fr> <20190526134746.9315-5-alex@ghiti.fr> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190526134746.9315-5-alex@ghiti.fr> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, May 26, 2019 at 09:47:36AM -0400, Alexandre Ghiti wrote: > arm64 handles top-down mmap layout in a way that can be easily reused > by other architectures, so make it available in mm. > It then introduces a new config ARCH_WANT_DEFAULT_TOPDOWN_MMAP_LAYOUT > that can be set by other architectures to benefit from those functions. > Note that this new config depends on MMU being enabled, if selected > without MMU support, a warning will be thrown. > > Suggested-by: Christoph Hellwig > Signed-off-by: Alexandre Ghiti > Reviewed-by: Christoph Hellwig Acked-by: Catalin Marinas