WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-changelog

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

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [linux-2.6.18-xen] PV-on-HVM: Fix bad symbol reference
From: "Xen patchbot-linux-2.6.18-xen" <patchbot-linux-2.6.18-xen@xxxxxxxxxxxxxxxxxxx>
Date: Fri, 07 Sep 2007 09:10:38 -0700
Delivery-date: Fri, 07 Sep 2007 09:13:41 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# 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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [linux-2.6.18-xen] PV-on-HVM: Fix bad symbol reference, Xen patchbot-linux-2.6.18-xen <=