From mboxrd@z Thu Jan 1 00:00:00 1970 From: Catalin Marinas Date: Thu, 08 Nov 2018 18:04:33 +0000 Subject: Re: [PATCH v2 1/2] mm: Introduce common STRUCT_PAGE_MAX_SHIFT define Message-Id: <20181108180432.GH144107@arrakis.emea.arm.com> List-Id: References: <20181107205433.3875-1-logang@deltatee.com> <20181107205433.3875-2-logang@deltatee.com> In-Reply-To: <20181107205433.3875-2-logang@deltatee.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit 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