Skip to contentSkip to conversation

x86: invalidate_shadow_ldt() should be static

PATCH New Jan Beulich 1 participant 1 message May 14, 2007

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 x86: invalidate_shadow_ldt() should be static

Since invalidate_shadow_ldt() depends on process_deferred_ops() to be called, it shouldn't be visible outside xen/arch/x86/mm.c.

xen/arch/x86/mm.c +1 -1
Index: 2007-04-27/xen/arch/x86/mm.c
===================================================================
@@ -410,7 +410,7 @@ void update_cr3(struct vcpu *v)
 }
 
 
-void invalidate_shadow_ldt(struct vcpu *v)
+static void invalidate_shadow_ldt(struct vcpu *v)
 {
     int i;
     unsigned long pfn;
xen/include/asm-x86/mm.h +0 -1
Index: 2007-04-27/xen/include/asm-x86/mm.h
===================================================================
@@ -143,7 +143,6 @@ void init_frametable(void);
 
 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);
 
 static inline void put_page(struct page_info *page)