[PATCH -V5 07/13] arch/powerpc: Make some of the PGTABLE_RANGE dependency explicit

Paul Mackerras paulus at samba.org
Wed Aug 1 15:18:09 EST 2012


On Mon, Jul 30, 2012 at 04:52:13PM +0530, Aneesh Kumar K.V wrote:
> From: "Aneesh Kumar K.V" <aneesh.kumar at linux.vnet.ibm.com>
> 
> slice array size and slice mask size depend on PGTABLE_RANGE. We
> can't directly include pgtable.h in these header because there is
> a circular dependency. So add compile time check for these values.
> 
> Signed-off-by: Aneesh Kumar K.V <aneesh.kumar at linux.vnet.ibm.com>

Reviewed-by: Paul Mackerras <paulus at samba.org>

but you might like to change:

> +#define SLICE_MASK_SIZE (PGTABLE_RANG >> 43)

to have PGTABLE_RANGE rather than PGTABLE_RANG.


More information about the Linuxppc-dev mailing list