Skip to contentSkip to conversation

x86: numa: include asm/pgtable_areas.h

PATCH Applied Arnd Bergmann 2 participants 2 messages Apr 3, 2024 – Apr 4, 2024

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 x86: numa: include asm/pgtable_areas.h

From: Arnd Bergmann <[email protected]>

The __vmalloc_start_set declaration is in a header that is not included in numa_32.c in current linux-next:

arch/x86/mm/numa_32.c: In function 'initmem_init':
arch/x86/mm/numa_32.c:57:9: error: '__vmalloc_start_set' undeclared (first use in this function)

   57 |         __vmalloc_start_set = true;
      |         ^~~~~~~~~~~~~~~~~~~

arch/x86/mm/numa_32.c:57:9: note: each undeclared identifier is reported only once for each function it appears in

Add an explicit #include

---
This showed up in linux-next after 6.8-rc1, but could not immediately see what changed.

---
 arch/x86/mm/numa_32.c | 1 +
 1 file changed, 1 insertion(+)
arch/x86/mm/numa_32.c +1 -0
index 104544359d69..025fd7ea5d69 100644
@@ -24,6 +24,7 @@
 
 #include <linux/memblock.h>
 #include <linux/init.h>
+#include <asm/pgtable_areas.h>
 
 #include "numa_internal.h"
 
Signature · 1 line
2.39.2
merge bot Applied
#1 lore raw

[tip: x86/urgent] x86/numa/32: Include missing <asm/pgtable_areas.h>

The following commit has been merged into the x86/urgent branch of tip:

The following commit has been merged into the x86/urgent branch of tip:

Commit-ID:     9852b1dc6a140365977d7bfb5fa03d413b3417ad
Gitweb:        https://git.kernel.org/tip/9852b1dc6a140365977d7bfb5fa03d413b3417ad
Author:        Arnd Bergmann <[email protected]>
AuthorDate:    Wed, 03 Apr 2024 22:23:37 +02:00
Committer:     Ingo Molnar <[email protected]>
CommitterDate: Thu, 04 Apr 2024 09:39:38 +02:00

x86/numa/32: Include missing <asm/pgtable_areas.h>

The __vmalloc_start_set declaration is in a header that is not included in numa_32.c in current linux-next:

arch/x86/mm/numa_32.c: In function 'initmem_init':
arch/x86/mm/numa_32.c:57:9: error: '__vmalloc_start_set' undeclared (first use in this function)

     57 |         __vmalloc_start_set = true;
        |         ^~~~~~~~~~~~~~~~~~~

arch/x86/mm/numa_32.c:57:9: note: each undeclared identifier is reported only once for each function it appears in

Add an explicit #include.

---
 arch/x86/mm/numa_32.c | 1 +
 1 file changed, 1 insertion(+)
arch/x86/mm/numa_32.c +1 -0
index 1045443..025fd7e 100644
@@ -24,6 +24,7 @@
 
 #include <linux/memblock.h>
 #include <linux/init.h>
+#include <asm/pgtable_areas.h>
 
 #include "numa_internal.h"