diff options
author | Jungseung Lee <js07.lee@gmail.com> | 2015-05-04 06:33:48 -0400 |
---|---|---|
committer | Will Deacon <will.deacon@arm.com> | 2015-05-05 07:22:17 -0400 |
commit | 326a780317d572711f70d53054502e86a1ff5317 (patch) | |
tree | 8364adbda9fd265de90e7f89aee29a35e0526f67 /arch/arm64 | |
parent | b9a95e85bbc56f168f078885f414f305b4589c4b (diff) |
arm64: mm: Fix build error with CONFIG_SPARSEMEM_VMEMMAP disabled
This fix the below build error:
arch/arm64/mm/dump.c: In function ‘ptdump_init’:
arch/arm64/mm/dump.c:331:18: error: ‘VMEMMAP_START_NR’ undeclared (first use in this function)
address_markers[VMEMMAP_START_NR].start_address =
^
arch/arm64/mm/dump.c:331:18: note: each undeclared identifier is reported only once for each
function it appears in
arch/arm64/mm/dump.c:333:18: error: ‘VMEMMAP_END_NR’ undeclared (first use in this function)
address_markers[VMEMMAP_END_NR].start_address =
^
Acked-by: Laura Abbott <labbott@redhat.com>
Signed-off-by: Jungseung Lee <js07.lee@gmail.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
Diffstat (limited to 'arch/arm64')
-rw-r--r-- | arch/arm64/mm/dump.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/arm64/mm/dump.c b/arch/arm64/mm/dump.c index 74c256744b25..f3d6221cd5bd 100644 --- a/arch/arm64/mm/dump.c +++ b/arch/arm64/mm/dump.c | |||
@@ -328,10 +328,12 @@ static int ptdump_init(void) | |||
328 | for (j = 0; j < pg_level[i].num; j++) | 328 | for (j = 0; j < pg_level[i].num; j++) |
329 | pg_level[i].mask |= pg_level[i].bits[j].mask; | 329 | pg_level[i].mask |= pg_level[i].bits[j].mask; |
330 | 330 | ||
331 | #ifdef CONFIG_SPARSEMEM_VMEMMAP | ||
331 | address_markers[VMEMMAP_START_NR].start_address = | 332 | address_markers[VMEMMAP_START_NR].start_address = |
332 | (unsigned long)virt_to_page(PAGE_OFFSET); | 333 | (unsigned long)virt_to_page(PAGE_OFFSET); |
333 | address_markers[VMEMMAP_END_NR].start_address = | 334 | address_markers[VMEMMAP_END_NR].start_address = |
334 | (unsigned long)virt_to_page(high_memory); | 335 | (unsigned long)virt_to_page(high_memory); |
336 | #endif | ||
335 | 337 | ||
336 | pe = debugfs_create_file("kernel_page_tables", 0400, NULL, NULL, | 338 | pe = debugfs_create_file("kernel_page_tables", 0400, NULL, NULL, |
337 | &ptdump_fops); | 339 | &ptdump_fops); |