Skip to content

Commit 0a787b2

Browse files
nivedita76KAGA-KOKO
authored andcommitted
x86/mm: Drop unused MAX_PHYSADDR_BITS
The macro is not used anywhere, and has an incorrect value (going by the comment) on x86_64 since commit c898faf ("x86: 46 bit physical address support on 64 bits") To avoid confusion, just remove the definition. Signed-off-by: Arvind Sankar <[email protected]> Signed-off-by: Thomas Gleixner <[email protected]> Link: https://lkml.kernel.org/r/[email protected]
1 parent 99e4020 commit 0a787b2

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

arch/x86/include/asm/sparsemem.h

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,24 +10,20 @@
1010
* field of the struct page
1111
*
1212
* SECTION_SIZE_BITS 2^n: size of each section
13-
* MAX_PHYSADDR_BITS 2^n: max size of physical address space
14-
* MAX_PHYSMEM_BITS 2^n: how much memory we can have in that space
13+
* MAX_PHYSMEM_BITS 2^n: max size of physical address space
1514
*
1615
*/
1716

1817
#ifdef CONFIG_X86_32
1918
# ifdef CONFIG_X86_PAE
2019
# define SECTION_SIZE_BITS 29
21-
# define MAX_PHYSADDR_BITS 36
2220
# define MAX_PHYSMEM_BITS 36
2321
# else
2422
# define SECTION_SIZE_BITS 26
25-
# define MAX_PHYSADDR_BITS 32
2623
# define MAX_PHYSMEM_BITS 32
2724
# endif
2825
#else /* CONFIG_X86_32 */
2926
# define SECTION_SIZE_BITS 27 /* matt - 128 is convenient right now */
30-
# define MAX_PHYSADDR_BITS (pgtable_l5_enabled() ? 52 : 44)
3127
# define MAX_PHYSMEM_BITS (pgtable_l5_enabled() ? 52 : 46)
3228
#endif
3329

0 commit comments

Comments
 (0)