From: Tim Deegan Subject: [PATCH] remove guest_physmap_max_mem_pages() Date: Wed, 3 Sep 2008 14:06:53 +0100 Message-ID: <20080903130653.GL27463@york.uk.xensource.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="a+b56+3nqLzpiR9O" Return-path: Content-Disposition: inline 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 --a+b56+3nqLzpiR9O Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Remove guest_physmap_max_mem_pages(), which is no longer usefully defined in any architecture. Signed-off-by: Tim Deegan -- Tim Deegan Principal Software Engineer, Citrix Systems (R&D) Ltd. [Company #02300071, SL9 0DZ, UK.] --a+b56+3nqLzpiR9O Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: attachment; filename=dead-code diff -r e617ce6878ad xen/common/domctl.c --- a/xen/common/domctl.c Wed Sep 03 10:10:59 2008 +0100 +++ b/xen/common/domctl.c Wed Sep 03 10:16:41 2008 +0100 @@ -655,9 +655,6 @@ long do_domctl(XEN_GUEST_HANDLE(xen_domc spin_lock(&d->page_alloc_lock); if ( new_max >= d->tot_pages ) { - ret = guest_physmap_max_mem_pages(d, new_max); - if ( ret != 0 ) - break; d->max_pages = new_max; ret = 0; } diff -r e617ce6878ad xen/include/asm-ia64/shadow.h --- a/xen/include/asm-ia64/shadow.h Wed Sep 03 10:10:59 2008 +0100 +++ b/xen/include/asm-ia64/shadow.h Wed Sep 03 10:15:05 2008 +0100 @@ -63,8 +63,6 @@ shadow_mark_page_dirty(struct domain *d, return 0; } -#define guest_physmap_max_mem_pages(d, n) (0) - #endif // _XEN_SHADOW_H /* diff -r e617ce6878ad xen/include/asm-x86/shadow.h --- a/xen/include/asm-x86/shadow.h Wed Sep 03 10:10:59 2008 +0100 +++ b/xen/include/asm-x86/shadow.h Wed Sep 03 10:13:07 2008 +0100 @@ -115,8 +115,6 @@ static inline void shadow_remove_all_sha sh_remove_shadows(v, gmfn, 0 /* Be thorough */, 1 /* Must succeed */); } -#define guest_physmap_max_mem_pages(d, n) (0) - #endif /* _XEN_SHADOW_H */ /* --a+b56+3nqLzpiR9O 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 --a+b56+3nqLzpiR9O--