Skip to contentSkip to conversation

x86/mm: add EXPORT_SYMBOL() for `pt_base`

PATCH In review Anthony PERARD 2 participants 2 messages Jan 17, 2024 x86

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 x86/mm: add EXPORT_SYMBOL() for `pt_base`

Without this, building "ioemu-stubdom" fails on Debian Buster or Bookworm, with:

/home/osstest/build.184372.build-amd64/xen/stubdom/mini-os-x86_64-ioemu/mini-os.o: in function `xenfb_pv_display_init':
ungetc.c:(.text+0x43533): undefined reference to `pt_base'

---
 arch/x86/mm.c | 1 +
 1 file changed, 1 insertion(+)
arch/x86/mm.c +1 -0
index 767a5f0..be1cf0c 100644
@@ -57,6 +57,7 @@
 unsigned long *phys_to_machine_mapping;
 unsigned long mfn_zero;
 pgentry_t *pt_base;
+EXPORT_SYMBOL(pt_base);
 static unsigned long first_free_pfn;
 static unsigned long last_free_pfn;
 static unsigned long virt_kernel_area_end = VIRT_KERNEL_AREA;
Signature · 1 line
Anthony PERARD
Reviewed-by on v1 1/1
#1 lore raw

Anthony PERARD, le mer. 17 janv. 2024 15:37:45 +0000, a ecrit:

Quoted 7 lines

Without this, building "ioemu-stubdom" fails on Debian Buster or Bookworm, with:

/home/osstest/build.184372.build-amd64/xen/stubdom/mini-os-x86_64-ioemu/mini-os.o: in function `xenfb_pv_display_init':
ungetc.c:(.text+0x43533): undefined reference to `pt_base'

Quoted 18 lines
---
 arch/x86/mm.c | 1 +
 1 file changed, 1 insertion(+)
arch/x86/mm.c +1 -0
index 767a5f0..be1cf0c 100644
@@ -57,6 +57,7 @@
 unsigned long *phys_to_machine_mapping;
 unsigned long mfn_zero;
 pgentry_t *pt_base;
+EXPORT_SYMBOL(pt_base);
 static unsigned long first_free_pfn;
 static unsigned long last_free_pfn;
 static unsigned long virt_kernel_area_end = VIRT_KERNEL_AREA;
Signature · 1 line
Anthony PERARD