From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from e23smtp08.au.ibm.com (e23smtp08.au.ibm.com [202.81.31.141]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "e23smtp08.au.ibm.com", Issuer "GeoTrust SSL CA" (not verified)) by ozlabs.org (Postfix) with ESMTPS id 991DF2C0080 for ; Wed, 1 Aug 2012 17:23:46 +1000 (EST) Received: from /spool/local by e23smtp08.au.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Wed, 1 Aug 2012 17:23:35 +1000 Received: from d23av04.au.ibm.com (d23av04.au.ibm.com [9.190.235.139]) by d23relay04.au.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id q717EsI224051880 for ; Wed, 1 Aug 2012 17:14:55 +1000 Received: from d23av04.au.ibm.com (loopback [127.0.0.1]) by d23av04.au.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id q717NBFW010030 for ; Wed, 1 Aug 2012 17:23:11 +1000 From: "Aneesh Kumar K.V" To: Paul Mackerras Subject: Re: [PATCH -V5 03/13] arch/powerpc: Convert virtual address to vpn In-Reply-To: <20120801043339.GB24014@drongo> References: <1343647339-25576-1-git-send-email-aneesh.kumar@linux.vnet.ibm.com> <1343647339-25576-4-git-send-email-aneesh.kumar@linux.vnet.ibm.com> <20120801043339.GB24014@drongo> Date: Wed, 01 Aug 2012 12:53:04 +0530 Message-ID: <87zk6fhy93.fsf@skywalker.in.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: linuxppc-dev@lists.ozlabs.org List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Paul Mackerras writes: > On Mon, Jul 30, 2012 at 04:52:09PM +0530, Aneesh Kumar K.V wrote: >> From: "Aneesh Kumar K.V" >> >> This patch convert different functions to take virtual page number >> instead of virtual address. Virtual page number is virtual address >> shifted right by VPN_SHIFT (12) bits. This enable us to have an >> address range of upto 76 bits. > > Mostly looks good. I don't think it's necessary to add the > BUILD_BUG_ON and BUG_ON conditions. I would think a comment next to > the definition saying that VPN_SHIFT can be at most 12 would be > sufficient. Updated. Thanks -aneesh