[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [linux-2.6.18-xen] PV-on-HVM: Fix bad symbol reference



# HG changeset patch
# User kfraser@xxxxxxxxxxxxxxxxxxxxx
# Date 1189157097 -3600
# Node ID 9e03bcda005440ec4f216610bccca2295c31c4bb
# Parent  5ce5bd383ea978ff6b2ed04d93cc2bb5dffcd1a9
PV-on-HVM: Fix bad symbol reference

This fixes a bug causing a bogus symbol reference (to init_page_count)
in the PV-on-HVM drivers for 2.6 kernels that define the set_page_count
macro.

Based on an original patch by:
 Signed-off-by: Ben Guthro <bguthro@xxxxxxxxxxxxxxx>
 Signed-off-by: Dave Lively <dlively@xxxxxxxxxxxxxxx>

Signed-off-by: Keir Fraser <keir@xxxxxxxxxxxxx>
---
 drivers/xen/core/gnttab.c |    9 ++++++++-
 include/xen/gnttab.h      |    6 +-----
 2 files changed, 9 insertions(+), 6 deletions(-)

diff -r 5ce5bd383ea9 -r 9e03bcda0054 drivers/xen/core/gnttab.c
--- a/drivers/xen/core/gnttab.c Fri Sep 07 10:19:22 2007 +0100
+++ b/drivers/xen/core/gnttab.c Fri Sep 07 10:24:57 2007 +0100
@@ -587,7 +587,14 @@ out:
        put_page(page);
        return err;
 }
-EXPORT_SYMBOL(gnttab_copy_grant_page);
+EXPORT_SYMBOL_GPL(gnttab_copy_grant_page);
+
+void gnttab_reset_grant_page(struct page *page)
+{
+       init_page_count(page);
+       reset_page_mapcount(page);
+}
+EXPORT_SYMBOL_GPL(gnttab_reset_grant_page);
 
 /*
  * Keep track of foreign pages marked as PageForeign so that we don't
diff -r 5ce5bd383ea9 -r 9e03bcda0054 include/xen/gnttab.h
--- a/include/xen/gnttab.h      Fri Sep 07 10:19:22 2007 +0100
+++ b/include/xen/gnttab.h      Fri Sep 07 10:24:57 2007 +0100
@@ -108,11 +108,7 @@ static inline void __gnttab_dma_unmap_pa
 {
 }
 
-static inline void gnttab_reset_grant_page(struct page *page)
-{
-       init_page_count(page);
-       reset_page_mapcount(page);
-}
+void gnttab_reset_grant_page(struct page *page);
 
 int gnttab_suspend(void);
 int gnttab_resume(void);

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.