[kernel/rawhide/user/kyle/kernel-git] fix build of xen-gntdev.ko

Kyle McMartin kyle at fedoraproject.org
Sat Jan 15 14:57:47 UTC 2011


commit c55a797910a3c6a19fd5b227ea858f3fe7bd8f29
Author: Kyle McMartin <kyle at redhat.com>
Date:   Sat Jan 15 01:34:12 2011 -0500

    fix build of xen-gntdev.ko

 kernel.spec                                |    8 ++++++++
 xen_export-arbitrary_virt_to_machine.patch |   25 +++++++++++++++++++++++++
 2 files changed, 33 insertions(+), 0 deletions(-)
---
diff --git a/kernel.spec b/kernel.spec
index 5ffd321..d0fba01 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 at redhat.com>
+- xen_export-arbitrary_virt_to_machine.patch: pull patch from upstream
+  to fix build error.
+
 * Fri Jan 14 2011 Kyle McMartin <kmcmartin at 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 0000000..14094fb
--- /dev/null
+++ b/xen_export-arbitrary_virt_to_machine.patch
@@ -0,0 +1,25 @@
+commit de23be5f3580f7b9b52cad6633bb3a3cd13abafe
+Author: Stephen Rothwell <sfr at 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 at canb.auug.org.au>
+    Signed-off-by: Linus Torvalds <torvalds at 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)
+ {


More information about the scm-commits mailing list