Received: by 2002:ac0:98c7:0:0:0:0:0 with SMTP id g7-v6csp3695468imd; Mon, 29 Oct 2018 10:53:36 -0700 (PDT) X-Google-Smtp-Source: AJdET5cJaALiyyVAbBRrntH9Z4/qldTiDZyaxsgfZbgUZJ4tPTNxqf1iOaI/DV/5HCptWEaZGO5m X-Received: by 2002:a62:1c96:: with SMTP id c144-v6mr16383068pfc.41.1540835616352; Mon, 29 Oct 2018 10:53:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1540835616; cv=none; d=google.com; s=arc-20160816; b=pmLKglw4hloaLDS/Kr1B2QxeWiNrdGR1MVt8eJARyya5p1NWncHlOdgkthWZ1cT+tT S6zxuER7cddxxi1dLxtJ5FFlWrLMkxrVrxoPhzBits1W1N4yVL5gZA1RLBaFOvi08d25 E1g9HkzxugiRs5GYKZJeXDUs6QZkkLDlQ5ZlpN0fZ434l5LdRtf/Tt85XfwqaGDMQBNt pyF3hWHDo5gX5sN4EnZ7/5Hpno3i1nOqVc1TaSJ57HNczDI7gDSHcSDIHrw3opKfegUN K4klZmipgYHjFTi13U4TwsBkl9P+oGZ+TRyvDR5iCZqz4BtJTTZbagQ8G9/Eu7BSD3kh O0Mg== 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=5heGLrGoIS+rfkwVAI/w8A2IdcQc/ISVOGWN8IXlm0Q=; b=eDsKVQGV6zlciN/ttRDLI4cKhBzg99Spyx6pQ4SEgIMVau30wWcVE+E8VDGzbyACS9 wOpYrHxVmATAWsThaM9fioDGgvDNf45mbt6BRZja+xPpREnRTo9u0Hr5j6Ws/EIlbCzX muQkXW5lAr79voFeiruG5uFo/xeHXt/U6HAyaj2fUOS1EK++NAHJGxEN2ISOmXDrGLbg nGX+mY1R1Gj/74xF7RjVPoErBJ4pjW2/Jm5g6arxjxlAi6bMRkmgKssR5z4BA5i8yhWg FQeoY9+1zDvUJDkb1m6buqV1G3ddOkwp7cAW6B2GNSoXiYJu96GfmYCSrafdlFMilvHy AjWQ== 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 o3-v6si6198pgp.251.2018.10.29.10.53.20; Mon, 29 Oct 2018 10:53:36 -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 S1728219AbeJ3Cmh (ORCPT + 99 others); Mon, 29 Oct 2018 22:42:37 -0400 Received: from usa-sjc-mx-foss1.foss.arm.com ([217.140.101.70]:43932 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726532AbeJ3Cmh (ORCPT ); Mon, 29 Oct 2018 22:42:37 -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 967AC80D; Mon, 29 Oct 2018 10:52:57 -0700 (PDT) Received: from edgewater-inn.cambridge.arm.com (usa-sjc-imap-foss1.foss.arm.com [10.72.51.249]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 66DE33F6A8; Mon, 29 Oct 2018 10:52:57 -0700 (PDT) Received: by edgewater-inn.cambridge.arm.com (Postfix, from userid 1000) id 7859D1AE091C; Mon, 29 Oct 2018 17:53:04 +0000 (GMT) Date: Mon, 29 Oct 2018 17:53:04 +0000 From: Will Deacon To: Logan Gunthorpe Cc: linux-kernel@vger.kernel.org, linux-mm@kvack.org, linux-riscv@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-sh@vger.kernel.org, Stephen Bates , Palmer Dabbelt , Albert Ou , Christoph Hellwig , Andrew Morton , Arnd Bergmann , Catalin Marinas Subject: Re: [PATCH v2 1/6] mm: Introduce common STRUCT_PAGE_MAX_SHIFT define Message-ID: <20181029175303.GB16739@arm.com> References: <20181015175702.9036-1-logang@deltatee.com> <20181015175702.9036-2-logang@deltatee.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20181015175702.9036-2-logang@deltatee.com> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Logan, On Mon, Oct 15, 2018 at 11:56:57AM -0600, 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 > Cc: Catalin Marinas > Cc: Will Deacon > Cc: Arnd Bergmann > Cc: Andrew Morton > Cc: Christoph Hellwig > --- > arch/arm64/include/asm/memory.h | 9 --------- > arch/arm64/mm/init.c | 8 -------- > include/asm-generic/fixmap.h | 1 + > include/linux/mm_types.h | 5 +++++ > 4 files changed, 6 insertions(+), 17 deletions(-) This looks like a really good cleanup to me, thanks: Acked-by: Will Deacon Will