From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-oi1-f200.google.com (mail-oi1-f200.google.com [209.85.167.200]) by kanga.kvack.org (Postfix) with ESMTP id A8FC46B0625 for ; Thu, 8 Nov 2018 13:04:39 -0500 (EST) Received: by mail-oi1-f200.google.com with SMTP id m129-v6so13244783oif.22 for ; Thu, 08 Nov 2018 10:04:39 -0800 (PST) Received: from foss.arm.com (foss.arm.com. [217.140.101.70]) by mx.google.com with ESMTP id w16si2074824ota.133.2018.11.08.10.04.38 for ; Thu, 08 Nov 2018 10:04:38 -0800 (PST) Date: Thu, 8 Nov 2018 18:04:33 +0000 From: Catalin Marinas Subject: Re: [PATCH v2 1/2] mm: Introduce common STRUCT_PAGE_MAX_SHIFT define Message-ID: <20181108180432.GH144107@arrakis.emea.arm.com> References: <20181107205433.3875-1-logang@deltatee.com> <20181107205433.3875-2-logang@deltatee.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20181107205433.3875-2-logang@deltatee.com> Sender: owner-linux-mm@kvack.org List-ID: To: Logan Gunthorpe Cc: linux-kernel@vger.kernel.org, linux-mm@kvack.org, linux-arch@vger.kernel.org, linux-riscv@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-sh@vger.kernel.org, Andrew Morton , Albert Ou , Arnd Bergmann , Palmer Dabbelt , Stephen Bates , Christoph Hellwig On Wed, Nov 07, 2018 at 01:54:32PM -0700, Logan Gunthorpe wrote: > This define is used by arm64 to calculate the size of the vmemmap > region. It is defined as the log2 of the upper bound on the size > of a struct page. > > We move it into mm_types.h so it can be defined properly instead of > set and checked with a build bug. This also allows us to use the same > define for riscv. > > Signed-off-by: Logan Gunthorpe > Acked-by: Will Deacon > Acked-by: Andrew Morton > Cc: Catalin Marinas > Cc: Arnd Bergmann > Cc: Christoph Hellwig Acked-by: Catalin Marinas