From: "Jan Beulich" Subject: [PATCH] ia64: fix build in grant table and tmem code Date: Fri, 22 Oct 2010 14:35:10 +0100 Message-ID: <4CC1AF2E020000780001E97E@vpn.id2.novell.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=__Part6845E81E.0__=" Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: "xen-devel@lists.xensource.com" List-Id: xen-devel@lists.xenproject.org This is a MIME message. If you are reading this text, you may want to consider changing to a mail reader or gateway that understands how to properly handle MIME multipart messages. --=__Part6845E81E.0__= Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Signed-off-by: Jan Beulich --- 2010-10-22.orig/xen/common/grant_table.c 2010-10-11 09:11:38.0000000= 00 +0200 +++ 2010-10-22/xen/common/grant_table.c 2010-10-22 14:55:19.000000000 = +0200 @@ -142,10 +142,11 @@ shared_entry_header(struct grant_table * /* Check if the page has been paged out */ static int __get_paged_frame(unsigned long gfn, unsigned long *frame, int = readonly, struct domain *rd) { + int rc =3D GNTST_okay; +#if defined(P2M_PAGED_TYPES) || defined(P2M_SHARED_TYPES) struct p2m_domain *p2m; p2m_type_t p2mt; mfn_t mfn; - int rc =3D GNTST_okay; =20 p2m =3D p2m_get_hostp2m(rd); if ( readonly ) @@ -163,6 +164,9 @@ static int __get_paged_frame(unsigned lo *frame =3D INVALID_MFN; rc =3D GNTST_bad_page; } +#else + *frame =3D readonly ? gmfn_to_mfn(rd, gfn) : gfn_to_mfn_private(rd, = gfn); +#endif =20 return rc; } --- 2010-10-22.orig/xen/common/tmem_xen.c 2010-10-11 09:11:38.0000000= 00 +0200 +++ 2010-10-22/xen/common/tmem_xen.c 2010-10-22 14:58:43.000000000 = +0200 @@ -95,8 +95,8 @@ static inline void *cli_get_page(tmem_cl return NULL; } =20 -static inline void cli_put_page(void *cli_va, struct page_info *cli_pfp, - bool_t mark_dirty) +static inline void cli_put_page(void *cli_va, pfp_t *cli_pfp, + unsigned long cli_mfn, bool_t mark_dirty) { ASSERT(0); } --=__Part6845E81E.0__= Content-Type: text/plain; name="ia64-build-fixes.patch" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="ia64-build-fixes.patch" Signed-off-by: Jan Beulich =0A=0A--- 2010-10-22.orig/x= en/common/grant_table.c 2010-10-11 09:11:38.000000000 +0200=0A+++ = 2010-10-22/xen/common/grant_table.c 2010-10-22 14:55:19.000000000 = +0200=0A@@ -142,10 +142,11 @@ shared_entry_header(struct grant_table *=0A = /* Check if the page has been paged out */=0A static int __get_paged_frame(= unsigned long gfn, unsigned long *frame, int readonly, struct domain = *rd)=0A {=0A+ int rc =3D GNTST_okay;=0A+#if defined(P2M_PAGED_TYPES) || = defined(P2M_SHARED_TYPES)=0A struct p2m_domain *p2m;=0A p2m_type_t = p2mt;=0A mfn_t mfn;=0A- int rc =3D GNTST_okay;=0A =0A p2m = =3D p2m_get_hostp2m(rd);=0A if ( readonly )=0A@@ -163,6 +164,9 @@ = static int __get_paged_frame(unsigned lo=0A *frame =3D INVALID_MFN;= =0A rc =3D GNTST_bad_page;=0A }=0A+#else=0A+ *frame =3D = readonly ? gmfn_to_mfn(rd, gfn) : gfn_to_mfn_private(rd, gfn);=0A+#endif=0A= =0A return rc;=0A }=0A--- 2010-10-22.orig/xen/common/tmem_xen.c = 2010-10-11 09:11:38.000000000 +0200=0A+++ 2010-10-22/xen/common/tmem_xen.c = 2010-10-22 14:58:43.000000000 +0200=0A@@ -95,8 +95,8 @@ static inline void = *cli_get_page(tmem_cl=0A return NULL;=0A }=0A =0A-static inline void = cli_put_page(void *cli_va, struct page_info *cli_pfp,=0A- = bool_t mark_dirty)=0A+static inline void cli_put_page(void = *cli_va, pfp_t *cli_pfp,=0A+ unsigned long = cli_mfn, bool_t mark_dirty)=0A {=0A ASSERT(0);=0A }=0A --=__Part6845E81E.0__= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --=__Part6845E81E.0__=--