summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--kernel.spec8
-rw-r--r--xen_export-arbitrary_virt_to_machine.patch25
2 files changed, 33 insertions, 0 deletions
diff --git a/kernel.spec b/kernel.spec
index 5ffd3213b..d0fba01e4 100644
--- a/kernel.spec
+++ b/kernel.spec
@@ -732,6 +732,8 @@ Patch12401: debug-tty-print-dev-name.patch
Patch12421: fs-call-security_d_instantiate-in-d_obtain_alias.patch
+Patch12422: xen_export-arbitrary_virt_to_machine.patch
+
%endif
BuildRoot: %{_tmppath}/kernel-%{KVERREL}-root
@@ -1344,6 +1346,8 @@ ApplyPatch debug-tty-print-dev-name.patch
# rhbz#662344,600690
ApplyPatch fs-call-security_d_instantiate-in-d_obtain_alias.patch
+ApplyPatch xen_export-arbitrary_virt_to_machine.patch
+
# END OF PATCH APPLICATIONS
%endif
@@ -1956,6 +1960,10 @@ fi
# ||----w |
# || ||
%changelog
+* Fri Jan 14 2011 Kyle McMartin <kmcmartin@redhat.com>
+- xen_export-arbitrary_virt_to_machine.patch: pull patch from upstream
+ to fix build error.
+
* Fri Jan 14 2011 Kyle McMartin <kmcmartin@redhat.com> 2.6.38-0.rc0.git12.1
- Linux 2.6.37-git12
- 0001-use-__devexit-not-__exit-in-n2_unregister_algs-fixes.patch: drop
diff --git a/xen_export-arbitrary_virt_to_machine.patch b/xen_export-arbitrary_virt_to_machine.patch
new file mode 100644
index 000000000..14094fb67
--- /dev/null
+++ b/xen_export-arbitrary_virt_to_machine.patch
@@ -0,0 +1,25 @@
+commit de23be5f3580f7b9b52cad6633bb3a3cd13abafe
+Author: Stephen Rothwell <sfr@canb.auug.org.au>
+Date: Sat Jan 15 10:36:26 2011 +1100
+
+ xen: export arbitrary_virt_to_machine
+
+ Fixes this build error:
+
+ ERROR: "arbitrary_virt_to_machine" [drivers/xen/xen-gntdev.ko] undefined!
+
+ Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
+ Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
+
+diff --git a/arch/x86/xen/mmu.c b/arch/x86/xen/mmu.c
+index 7575e55..5e92b61 100644
+--- a/arch/x86/xen/mmu.c
++++ b/arch/x86/xen/mmu.c
+@@ -201,6 +201,7 @@ xmaddr_t arbitrary_virt_to_machine(void *vaddr)
+ offset = address & ~PAGE_MASK;
+ return XMADDR(((phys_addr_t)pte_mfn(*pte) << PAGE_SHIFT) + offset);
+ }
++EXPORT_SYMBOL_GPL(arbitrary_virt_to_machine);
+
+ void make_lowmem_page_readonly(void *vaddr)
+ {