Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp420392imu; Thu, 8 Nov 2018 10:05:28 -0800 (PST) X-Google-Smtp-Source: AJdET5fddAcpyi+Cp5KiiFrZSYM4CPY8qsYR4X1vuaBKfsdiHZ9XpN7qRVdxIzg6bKlG+ydoIdjz X-Received: by 2002:a62:d452:: with SMTP id u18-v6mr5545774pfl.32.1541700327950; Thu, 08 Nov 2018 10:05:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541700327; cv=none; d=google.com; s=arc-20160816; b=ac6mT/bVY7/vDLO9Up2qwuqy38WYdii4OXhhcAMAXneN/s0z7U1VKDlN17UW+kOaQF V4nfv8irL0NtTcEjvyjrYJeddkJQ0pK1OlDeaiHus5Gz4vxj/2JhJxOowuRltHE9Cue/ /EX3ymqTL/Ko7E9lgTaoDTfdcPwNTxTaWJi1ziq9aRzXAPTz+wwQSQLLMxyZsnNtDt7e 9NKE1sXO1SQBQm2Cxp3vaB85sW8bk2LxtmgSsVjjHdLxz43nOToPq+3q4CT+7dS0MXix gafJ/4S9XtY+SVa5b+QYYbMp9YLnVfhKYAWlc1iCXPrCQ9paAGc4XrKhWiOBXHg0JWh0 Hy3Q== 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=D4r1nk0jF9SXsAmhj59bm4mNg2KxtLNk33FOZk+l9VM=; b=pc3mjcTTh3uN832odtxRQOfyDeg5i7M+6F1RIriMPJN47QdKu0jBfI5Am4qWNCEImO GAe1MbpdtlxjYakB+hsT4e9k9EVPuy3u7xl8ZPwqAbL9/5xtAPEnEVSAZ7zUOikikCdE FeP7TflJz6HuzelyCzBS1h0yeOGrBgaAc8RQ35oYHC0XBBpORDKTCUS+iG4HIDBOULuM kzusbBy8sdbvzWIZlg6bSt45pNgE/cpKb8AtcVgQt8YoYbVIMbSjY/qxiy9+Hx/xQXfD jUnIel0v7N02JeZANvNCnYAwekkjaxqCiE7vbhelN0sq4zmLQ97UJLZuuRA8f0HXX5JM 29WQ== 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 y2-v6si4198789pgc.430.2018.11.08.10.05.11; Thu, 08 Nov 2018 10:05:27 -0800 (PST) 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 S1727028AbeKIDlR (ORCPT + 99 others); Thu, 8 Nov 2018 22:41:17 -0500 Received: from foss.arm.com ([217.140.101.70]:46844 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726751AbeKIDlR (ORCPT ); Thu, 8 Nov 2018 22:41:17 -0500 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 13F59EBD; Thu, 8 Nov 2018 10:04:38 -0800 (PST) Received: from arrakis.emea.arm.com (arrakis.cambridge.arm.com [10.1.197.53]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id D43A43F5CF; Thu, 8 Nov 2018 10:04:35 -0800 (PST) Date: Thu, 8 Nov 2018 18:04:33 +0000 From: Catalin Marinas 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 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> 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 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