From: "KUWAMURA Shin'ya" Subject: [PATCH] ia64: fix linkage error Date: Fri, 17 Jul 2009 16:01:15 +0900 (JST) Message-ID: <20090717.160115.20523688.kuwa@jp.fujitsu.com> Mime-Version: 1.0 Content-Type: Multipart/Mixed; boundary="--Next_Part(Fri_Jul_17_16_01_15_2009_227)--" Content-Transfer-Encoding: 7bit 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 Cc: xen-ia64-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org ----Next_Part(Fri_Jul_17_16_01_15_2009_227)-- Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Hi, 19932:c0cb307d927f breaks ia64: /xen-unstable.hg/xen/common/built_in.o(.text+0x10912): In function `do_grant_table_op': /xen-unstable.hg/xen/common/grant_table.c:230: undefined reference to `paging_mode_external' /xen-unstable.hg/xen/common/built_in.o(.text+0x10f82): /xen-unstable.hg/xen/common/grant_table.c:356: undefined reference to `paging_mode_external' IA64 does not have paging_mode_external(). Signed-off-by: KUWAMURA Shin'ya -- KUWAMURA Shin'ya ----Next_Part(Fri_Jul_17_16_01_15_2009_227)-- Content-Type: Text/X-Patch; charset=us-ascii Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="fix-ia64-linkage-error.patch" # HG changeset patch # User KUWAMURA Shin'ya # Date 1247718200 -32400 # Node ID b040d2de8746d81708b7b619d948496325f8fb7e # Parent 91407452cdb62f427c74e227956dc34a107cab46 ia64: fix linkage error IA64 does not have paging_mode_external(). Signed-off-by: KUWAMURA Shin'ya diff -r 91407452cdb6 -r b040d2de8746 xen/common/grant_table.c --- a/xen/common/grant_table.c Wed Jul 15 13:15:50 2009 +0100 +++ b/xen/common/grant_table.c Thu Jul 16 13:23:20 2009 +0900 @@ -227,6 +227,7 @@ __gnttab_map_grant_ref( return; } +#ifndef __ia64__ if ( unlikely(paging_mode_external(ld) && (op->flags & (GNTMAP_device_map|GNTMAP_application_map| GNTMAP_contains_pte))) ) @@ -235,6 +236,7 @@ __gnttab_map_grant_ref( op->status = GNTST_general_error; return; } +#endif if ( unlikely((rd = rcu_lock_domain_by_id(op->dom)) == NULL) ) { @@ -353,12 +355,14 @@ __gnttab_map_grant_ref( if ( mfn_valid(frame) ) put_page(mfn_to_page(frame)); +#ifndef __ia64__ if ( paging_mode_external(ld) ) { gdprintk(XENLOG_WARNING, "HVM guests can't grant map iomem\n"); rc = GNTST_general_error; goto undo_out; } +#endif if ( !iomem_access_permitted(rd, frame, frame) ) { ----Next_Part(Fri_Jul_17_16_01_15_2009_227)-- 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 ----Next_Part(Fri_Jul_17_16_01_15_2009_227)----