From: "Jan Beulich" Subject: [PATCH] x86: invalidate_shadow_ldt() should be static Date: Mon, 14 May 2007 17:01:49 +0200 Message-ID: <464895FD.76E4.0078.0@novell.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable 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 Since invalidate_shadow_ldt() depends on process_deferred_ops() to be = called, it shouldn't be visible outside xen/arch/x86/mm.c. Signed-off-by: Jan Beulich Index: 2007-04-27/xen/arch/x86/mm.c =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- 2007-04-27.orig/xen/arch/x86/mm.c 2007-04-27 08:27:18.000000000 = +0200 +++ 2007-04-27/xen/arch/x86/mm.c 2007-04-27 09:30:37.000000000 = +0200 @@ -410,7 +410,7 @@ void update_cr3(struct vcpu *v) } =20 =20 -void invalidate_shadow_ldt(struct vcpu *v) +static void invalidate_shadow_ldt(struct vcpu *v) { int i; unsigned long pfn; Index: 2007-04-27/xen/include/asm-x86/mm.h =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- 2007-04-27.orig/xen/include/asm-x86/mm.h 2007-04-02 12:16:27.0000000= 00 +0200 +++ 2007-04-27/xen/include/asm-x86/mm.h 2007-04-27 09:30:37.000000000 = +0200 @@ -143,7 +143,6 @@ void init_frametable(void); =20 int alloc_page_type(struct page_info *page, unsigned long type); void free_page_type(struct page_info *page, unsigned long type); -void invalidate_shadow_ldt(struct vcpu *d); int _shadow_mode_refcounts(struct domain *d); =20 static inline void put_page(struct page_info *page)