* [PATCH] arm64: mm: Fix build error with CONFIG_SPARSEMEM_VMEMMAP disabled
@ 2015-05-04 10:33 Jungseung Lee
2015-05-04 16:51 ` Laura Abbott
0 siblings, 1 reply; 2+ messages in thread
From: Jungseung Lee @ 2015-05-04 10:33 UTC (permalink / raw)
To: linux-arm-kernel
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 =
^
Signed-off-by: Jungseung Lee <js07.lee@gmail.com>
---
arch/arm64/mm/dump.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/arch/arm64/mm/dump.c b/arch/arm64/mm/dump.c
index 74c2567..f3d6221 100644
--- a/arch/arm64/mm/dump.c
+++ b/arch/arm64/mm/dump.c
@@ -328,10 +328,12 @@ static int ptdump_init(void)
for (j = 0; j < pg_level[i].num; j++)
pg_level[i].mask |= pg_level[i].bits[j].mask;
+#ifdef CONFIG_SPARSEMEM_VMEMMAP
address_markers[VMEMMAP_START_NR].start_address =
(unsigned long)virt_to_page(PAGE_OFFSET);
address_markers[VMEMMAP_END_NR].start_address =
(unsigned long)virt_to_page(high_memory);
+#endif
pe = debugfs_create_file("kernel_page_tables", 0400, NULL, NULL,
&ptdump_fops);
--
1.9.1
^ permalink raw reply related [flat|nested] 2+ messages in thread* [PATCH] arm64: mm: Fix build error with CONFIG_SPARSEMEM_VMEMMAP disabled
2015-05-04 10:33 [PATCH] arm64: mm: Fix build error with CONFIG_SPARSEMEM_VMEMMAP disabled Jungseung Lee
@ 2015-05-04 16:51 ` Laura Abbott
0 siblings, 0 replies; 2+ messages in thread
From: Laura Abbott @ 2015-05-04 16:51 UTC (permalink / raw)
To: linux-arm-kernel
On 05/04/2015 03:33 AM, Jungseung Lee wrote:
> 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 =
> ^
>
> Signed-off-by: Jungseung Lee <js07.lee@gmail.com>
> ---
> arch/arm64/mm/dump.c | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/arch/arm64/mm/dump.c b/arch/arm64/mm/dump.c
> index 74c2567..f3d6221 100644
> --- a/arch/arm64/mm/dump.c
> +++ b/arch/arm64/mm/dump.c
> @@ -328,10 +328,12 @@ static int ptdump_init(void)
> for (j = 0; j < pg_level[i].num; j++)
> pg_level[i].mask |= pg_level[i].bits[j].mask;
>
> +#ifdef CONFIG_SPARSEMEM_VMEMMAP
> address_markers[VMEMMAP_START_NR].start_address =
> (unsigned long)virt_to_page(PAGE_OFFSET);
> address_markers[VMEMMAP_END_NR].start_address =
> (unsigned long)virt_to_page(high_memory);
> +#endif
>
> pe = debugfs_create_file("kernel_page_tables", 0400, NULL, NULL,
> &ptdump_fops);
>
Acked-by: Laura Abbott <labbott@redhat.com>
Did something change recently to make SPARSEMEM_VMEMMAP actually
deselectable? For some reason I thought that couldn't be turned off.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-05-04 16:51 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-05-04 10:33 [PATCH] arm64: mm: Fix build error with CONFIG_SPARSEMEM_VMEMMAP disabled Jungseung Lee
2015-05-04 16:51 ` Laura Abbott
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).