Skip to contentSkip to conversation

arm: Export needed symbol for ZERO_PAGE usage in modules.

PATCH In review Aneesh Kumar K.V 2 participants 2 messages Mar 24, 2008 Arm (32-bit)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 arm: Export needed symbol for ZERO_PAGE usage in modules.

ext4 use ZERO_PAGE(0) to zero out blocks. We need to export different symbols in different arch for the usage of ZERO_PAGE in modules.

---
 arch/arm/mm/mmu.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
arch/arm/mm/mmu.c +1 -0
index d41a75e..2d6d682 100644
@@ -35,6 +35,7 @@ extern pgd_t swapper_pg_dir[PTRS_PER_PGD];
  * zero-initialized data and COW.
  */
 struct page *empty_zero_page;
+EXPORT_SYMBOL(empty_zero_page);
 
 /*
  * The pmd table for the upper-most set of pages.
Signature · 1 line
1.5.5.rc0.16.g02b00.dirty
#1 lore raw
Quoted 14 lines · On Mon, 24 Mar 2008 23:31:29 +0530 "Aneesh Kumar K.V"…

ext4 use ZERO_PAGE(0) to zero out blocks. We need to export different symbols in different arch for the usage of ZERO_PAGE in modules.

---
 arch/arm/mm/mmu.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
arch/arm/mm/mmu.c +0 -0
index d41a75e..2d6d682 100644

arch/arm/mm/mmu.c extern pgd_t swapper_pg_dir[PTRS_PER_PGD]; · line 40

Quoted 6 lines
arch/arm/mm/mmu.c +1 -0
@@ -35,6 +35,7 @@ extern pgd_t swapper_pg_dir[PTRS_PER_PGD];
  * zero-initialized data and COW.
  */
 struct page *empty_zero_page;
+EXPORT_SYMBOL(empty_zero_page);
 
 /*

I wonder if it would be better to do this export in generic code.

Architectures which don't implement empty_zero_page:

alpha: seems to do something fancy
sparc64: need to rename mem_map_zero to empty_zero_page
v850: #define ZERO_PAGE(vaddr) ((void *)0x87654321) (wtf?)