[PATCH v4 1/2] export necessary symbols

From: Isaku Yamahata
Date: Tue Oct 30 2012 - 04:35:00 EST


Cc: Andrea Arcangeli <aarcange@xxxxxxxxxx>
Cc: Avi Kivity <avi@xxxxxxxxxx>
Cc: Paolo Bonzini <pbonzini@xxxxxxxxxx>
Signed-off-by: Isaku Yamahata <yamahata@xxxxxxxxxxxxx>
---
mm/memcontrol.c | 1 +
mm/mempolicy.c | 1 +
mm/shmem.c | 1 +
3 files changed, 3 insertions(+)

diff --git a/mm/memcontrol.c b/mm/memcontrol.c
index 7acf43b..bc9fd53 100644
--- a/mm/memcontrol.c
+++ b/mm/memcontrol.c
@@ -2787,6 +2787,7 @@ int mem_cgroup_newpage_charge(struct page *page,
return mem_cgroup_charge_common(page, mm, gfp_mask,
MEM_CGROUP_CHARGE_TYPE_ANON);
}
+EXPORT_SYMBOL_GPL(mem_cgroup_cache_charge);

/*
* While swap-in, try_charge -> commit or cancel, the page is locked.
diff --git a/mm/mempolicy.c b/mm/mempolicy.c
index d04a8a5..3df6cf5 100644
--- a/mm/mempolicy.c
+++ b/mm/mempolicy.c
@@ -1947,6 +1947,7 @@ retry_cpuset:
goto retry_cpuset;
return page;
}
+EXPORT_SYMBOL_GPL(alloc_pages_vma);

/**
* alloc_pages_current - Allocate pages.
diff --git a/mm/shmem.c b/mm/shmem.c
index 67afba5..41eaefd 100644
--- a/mm/shmem.c
+++ b/mm/shmem.c
@@ -2840,6 +2840,7 @@ int shmem_zero_setup(struct vm_area_struct *vma)
vma->vm_ops = &shmem_vm_ops;
return 0;
}
+EXPORT_SYMBOL_GPL(shmem_zero_setup);

/**
* shmem_read_mapping_page_gfp - read into page cache, using specified page allocation flags.
--
1.7.10.4

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/