X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;f=mm%2Fnommu.c;h=2b16b00a5b115be2c13897aab5763562312ecb84;hb=7a13e932281e7042a592f4f14db0b348199e7aac;hp=cbbc1377481981ff26e065dbade356ec90ac0728;hpb=90f30eccf41302a2542f5d374af243061902bd98;p=powerpc.git diff --git a/mm/nommu.c b/mm/nommu.c index cbbc137748..2b16b00a5b 100644 --- a/mm/nommu.c +++ b/mm/nommu.c @@ -45,6 +45,7 @@ int heap_stack_gap = 0; EXPORT_SYMBOL(mem_map); EXPORT_SYMBOL(__vm_enough_memory); +EXPORT_SYMBOL(num_physpages); /* list of shareable VMAs */ struct rb_root nommu_vma_tree = RB_ROOT; @@ -260,6 +261,14 @@ void vunmap(void *addr) BUG(); } +/* + * Implement a stub for vmalloc_sync_all() if the architecture chose not to + * have one. + */ +void __attribute__((weak)) vmalloc_sync_all(void) +{ +} + /* * sys_brk() for the most part doesn't need the global kernel * lock, except when an application is doing something nasty