diff mbox

[5/6] sparc64: Fix inconsistent max-physical-address defines.

Message ID 20130921.011630.1418111133842440021.davem@davemloft.net
State Superseded
Delegated to: David Miller
Headers show

Commit Message

David Miller Sept. 21, 2013, 5:16 a.m. UTC
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>
---
 arch/sparc/include/asm/sparsemem.h | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

Comments

Bob Picco Sept. 22, 2013, 5:16 p.m. UTC | #1
David Miller wrote:	[Sat Sep 21 2013, 01:16:30AM EDT]
> 
> 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>
--
To unsubscribe from this list: send the line "unsubscribe sparclinux" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

diff --git a/arch/sparc/include/asm/sparsemem.h b/arch/sparc/include/asm/sparsemem.h
index b99d4e4..e5e1752 100644
--- a/arch/sparc/include/asm/sparsemem.h
+++ b/arch/sparc/include/asm/sparsemem.h
@@ -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__) */