Skip to contentSkip to conversation

sparc64: Fix inconsistent max-physical-address defines.

PATCH In review David Miller 1 participant 1 message Nov 13, 2013 SPARC + UltraSPARC (sparc/sparc64)

lore
Share & tools
lore

David Miller

author maintainer
#0 lore raw

PATCH v3 5/9 sparc64: Fix inconsistent max-physical-address defines.

Some parts of the code use '41' others use '42', make them all use the same value.

---
 arch/sparc/include/asm/sparsemem.h | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
arch/sparc/include/asm/sparsemem.h +4 -2
index b99d4e4..e5e1752 100644
@@ -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__) */
 
Signature · 1 line
1.8.1.2