sparc64: Fix inconsistent max-physical-address defines.
authorDavid S. Miller <davem@davemloft.net>
Thu, 19 Sep 2013 01:39:25 +0000 (18:39 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 12 Nov 2013 23:22:34 +0000 (15:22 -0800)
Some parts of the code use '41' others use '42', make them
all use the same value.

Signed-off-by: David S. Miller <davem@davemloft.net>
Acked-by: Bob Picco <bob.picco@oracle.com>
arch/sparc/include/asm/sparsemem.h

index b99d4e4b6d284a6a93d6d9450de4f3da2e446b61..e5e1752d5d78e9a5ac594c698a78de432b78c9b1 100644 (file)
@@ -3,9 +3,11 @@
 
 #ifdef __KERNEL__
 
+#include <asm/page.h>
+
 #define SECTION_SIZE_BITS       30
-#define MAX_PHYSADDR_BITS       42
-#define MAX_PHYSMEM_BITS        42
+#define MAX_PHYSADDR_BITS       MAX_PHYS_ADDRESS_BITS
+#define MAX_PHYSMEM_BITS        MAX_PHYS_ADDRESS_BITS
 
 #endif /* !(__KERNEL__) */