Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp2946099yba; Mon, 22 Apr 2019 16:18:59 -0700 (PDT) X-Google-Smtp-Source: APXvYqw/BPinSwRbM/CsDQ+TD4AO69/n3rAaUVg4wMXxWBZ91AS1AAu0mPQolORUvV3sw6pz4DnB X-Received: by 2002:a63:2b41:: with SMTP id r62mr21496372pgr.403.1555975139406; Mon, 22 Apr 2019 16:18:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555975139; cv=none; d=google.com; s=arc-20160816; b=elwnyJEErr56oFp0vWMjHBAanmxhSBgHOauu2DsmxAnb2MpRo0VWQJtTx7x+fAXMpU 2wt33mWyz48UT6RA3i4fyUmE7J+2Rp8EkPefAedJD2s2EyV8jPENF5IXH3Eg0XfzIbAU pBZ5629i9qRX17PLoSkqmPUpwZ6crcHJOf3cYw98CVshCdjHojvTgLDfrXrXVKDqN+gL dBNsOs8/qydsnvc/NEQCrbVUpHUQZ7GyHAd16LDzTC4WuRxboHE77I+Eiu4AVSeHTzqZ XlbyBD4CRGA+/3sbolZilyqLdEmkiSfJmiz+/fc3SMzJfpIBmFWWCfe8INP90LNeTtL4 0iLA== 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=NucAgZ2xCAUMp9viU+KpaGAhriOgQKHfNLk1DJTEJRg=; b=j1XQuVsg9DwsE5vSls8/0l+6jBNViLzPvxQ1/huN31BOSaj+sSi2CoWD7NOFvqLaQE 4MpGk2fcFw0+PSnG3zj9i/VOz7o/8z4FMU8RPpUqg5JCQHw+ARSz0JhVOjsxAI3/awKJ z3B4OXCCRjfDQDWvioaYO3Cu235aMWLxk39ND5BPTSR3vNKOIw/IgNnKtxiFQxkhsclh +ou4RJD/zm8tCirrMabp5acpEN9zx2kcixA+mgKymvPut69f5CBprM+RzRCI/4byKCmq 14SILjM0HrOovsBP3Lyau0HCV6VWaciMF2OZqEpf+cmZQh/4UDsHBqPtvssSw5Qr3L9K 6dtg== 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 89si14365818pfs.243.2019.04.22.16.18.44; Mon, 22 Apr 2019 16:18:59 -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 S1731500AbfDVTye (ORCPT + 99 others); Mon, 22 Apr 2019 15:54:34 -0400 Received: from verein.lst.de ([213.95.11.211]:41724 "EHLO newverein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728831AbfDVTyd (ORCPT ); Mon, 22 Apr 2019 15:54:33 -0400 Received: by newverein.lst.de (Postfix, from userid 2407) id EDBB668B20; Mon, 22 Apr 2019 21:54:16 +0200 (CEST) Date: Mon, 22 Apr 2019 21:54:14 +0200 From: Christoph Hellwig To: Alexandre Ghiti Cc: Andrew Morton , Christoph Hellwig , Russell King , Catalin Marinas , 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 v3 04/11] arm64, mm: Move generic mmap layout functions to mm Message-ID: <20190422195414.GC2224@lst.de> References: <20190417052247.17809-1-alex@ghiti.fr> <20190417052247.17809-5-alex@ghiti.fr> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190417052247.17809-5-alex@ghiti.fr> User-Agent: Mutt/1.5.17 (2007-11-01) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Apr 17, 2019 at 01:22:40AM -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 Looks good, Reviewed-by: Christoph Hellwig