[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen-unstable] Cleanup: Make local functions static and remove unused functions.



# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1254296614 -3600
# Node ID c6b22d0d1e90d5cfe608e932096a4adb96b8aa3f
# Parent  bd376919f03ada900baffb62feea745f57e0a760
Cleanup: Make local functions static and remove unused functions.

Signed-off-by: Christoph Egger <Christoph.Egger@xxxxxxx>
---
 xen/arch/x86/apic.c                        |   11 +----
 xen/arch/x86/cpu/intel.c                   |   20 ----------
 xen/arch/x86/cpu/mcheck/amd_nonfatal.c     |    2 -
 xen/arch/x86/cpu/mcheck/mce_intel.c        |    2 -
 xen/arch/x86/genapic/x2apic.c              |    4 +-
 xen/arch/x86/hvm/i8254.c                   |    2 -
 xen/arch/x86/hvm/io.c                      |    4 +-
 xen/arch/x86/hvm/vlapic.c                  |    4 +-
 xen/arch/x86/io_apic.c                     |    4 +-
 xen/arch/x86/ioport_emulate.c              |    4 +-
 xen/arch/x86/irq.c                         |    2 -
 xen/arch/x86/mm/hap/guest_walk.c           |    1 
 xen/arch/x86/mm/hap/hap.c                  |   16 ++++----
 xen/arch/x86/mm/p2m.c                      |    2 -
 xen/arch/x86/mm/paging.c                   |    2 -
 xen/arch/x86/traps.c                       |    7 ++-
 xen/arch/x86/x86_emulate/x86_emulate.c     |    5 +-
 xen/common/sched_credit.c                  |    2 -
 xen/crypto/vmac.c                          |   56 -----------------------------
 xen/drivers/char/console.c                 |   10 -----
 xen/drivers/passthrough/amd/iommu_detect.c |    2 -
 xen/drivers/passthrough/amd/iommu_init.c   |    4 +-
 xen/drivers/passthrough/amd/iommu_map.c    |   10 -----
 xen/drivers/passthrough/vtd/intremap.c     |    2 -
 xen/drivers/passthrough/vtd/iommu.c        |   12 +++---
 xen/drivers/passthrough/vtd/qinval.c       |    2 -
 xen/include/asm-x86/msi.h                  |    2 +
 xen/include/xen/xenoprof.h                 |    1 
 28 files changed, 49 insertions(+), 146 deletions(-)

diff -r bd376919f03a -r c6b22d0d1e90 xen/arch/x86/apic.c
--- a/xen/arch/x86/apic.c       Tue Sep 29 11:28:33 2009 +0100
+++ b/xen/arch/x86/apic.c       Wed Sep 30 08:43:34 2009 +0100
@@ -52,7 +52,7 @@ int x2apic_enabled __read_mostly = 0;
 
 static void apic_pm_activate(void);
 
-int modern_apic(void)
+static int modern_apic(void)
 {
     unsigned int lvr, version;
     /* AMD systems use old APIC versions, so check the CPU */
@@ -995,7 +995,7 @@ void (*wait_timer_tick)(void) __initdata
 
 #define APIC_DIVISOR 1
 
-void __setup_APIC_LVTT(unsigned int clocks)
+static void __setup_APIC_LVTT(unsigned int clocks)
 {
     unsigned int lvtt_value, tmp_value, ver;
 
@@ -1033,7 +1033,7 @@ static void __devinit setup_APIC_timer(u
  * APIC irq that way.
  */
 
-int __init calibrate_APIC_clock(void)
+static int __init calibrate_APIC_clock(void)
 {
     unsigned long long t1 = 0, t2 = 0;
     long tt1, tt2;
@@ -1105,11 +1105,6 @@ int __init calibrate_APIC_clock(void)
     __setup_APIC_LVTT(0);
 
     return result;
-}
-
-u32 get_apic_bus_cycle(void)
-{
-    return bus_cycle;
 }
 
 static unsigned int calibration_result;
diff -r bd376919f03a -r c6b22d0d1e90 xen/arch/x86/cpu/intel.c
--- a/xen/arch/x86/cpu/intel.c  Tue Sep 29 11:28:33 2009 +0100
+++ b/xen/arch/x86/cpu/intel.c  Wed Sep 30 08:43:34 2009 +0100
@@ -67,26 +67,6 @@ void __devinit early_intel_workaround(st
        if (c->x86 == 15 && c->x86_cache_alignment == 64)
                c->x86_cache_alignment = 128;
 }
-
-/*
- *     Early probe support logic for ppro memory erratum #50
- *
- *     This is called before we do cpu ident work
- */
- 
-int __devinit ppro_with_ram_bug(void)
-{
-       /* Uses data from early_cpu_detect now */
-       if (boot_cpu_data.x86_vendor == X86_VENDOR_INTEL &&
-           boot_cpu_data.x86 == 6 &&
-           boot_cpu_data.x86_model == 1 &&
-           boot_cpu_data.x86_mask < 8) {
-               printk(KERN_INFO "Pentium Pro with Errata#50 detected. Taking 
evasive action.\n");
-               return 1;
-       }
-       return 0;
-}
-       
 
 /*
  * P4 Xeon errata 037 workaround.
diff -r bd376919f03a -r c6b22d0d1e90 xen/arch/x86/cpu/mcheck/amd_nonfatal.c
--- a/xen/arch/x86/cpu/mcheck/amd_nonfatal.c    Tue Sep 29 11:28:33 2009 +0100
+++ b/xen/arch/x86/cpu/mcheck/amd_nonfatal.c    Wed Sep 30 08:43:34 2009 +0100
@@ -80,7 +80,7 @@ static int variable_period = 1;
  * Collects information of correctable errors and notifies
  * Dom0 via an event.
  */
-void mce_amd_checkregs(void *info)
+static void mce_amd_checkregs(void *info)
 {
        mctelem_cookie_t mctc;
        struct mca_summary bs;
diff -r bd376919f03a -r c6b22d0d1e90 xen/arch/x86/cpu/mcheck/mce_intel.c
--- a/xen/arch/x86/cpu/mcheck/mce_intel.c       Tue Sep 29 11:28:33 2009 +0100
+++ b/xen/arch/x86/cpu/mcheck/mce_intel.c       Wed Sep 30 08:43:34 2009 +0100
@@ -329,7 +329,7 @@ static int inject_mce(struct domain *d)
     return 0;
 }
 
-void intel_UCR_handler(struct mcinfo_bank *bank,
+static void intel_UCR_handler(struct mcinfo_bank *bank,
              struct mcinfo_global *global,
              struct mcinfo_extended *extension,
              struct mca_handle_result *result)
diff -r bd376919f03a -r c6b22d0d1e90 xen/arch/x86/genapic/x2apic.c
--- a/xen/arch/x86/genapic/x2apic.c     Tue Sep 29 11:28:33 2009 +0100
+++ b/xen/arch/x86/genapic/x2apic.c     Wed Sep 30 08:43:34 2009 +0100
@@ -29,13 +29,13 @@ static int x2apic_phys = 0; /* By defaul
 static int x2apic_phys = 0; /* By default we use logical cluster mode. */
 boolean_param("x2apic_phys", x2apic_phys);
 
-__init int probe_x2apic_phys(void)
+static int __init probe_x2apic_phys(void)
 {
     return x2apic && x2apic_phys && x2apic_is_available() &&
         iommu_supports_eim();
 }
 
-__init int probe_x2apic_cluster(void)
+static int __init probe_x2apic_cluster(void)
 {
     return x2apic && !x2apic_phys && x2apic_is_available() &&
         iommu_supports_eim();
diff -r bd376919f03a -r c6b22d0d1e90 xen/arch/x86/hvm/i8254.c
--- a/xen/arch/x86/hvm/i8254.c  Tue Sep 29 11:28:33 2009 +0100
+++ b/xen/arch/x86/hvm/i8254.c  Wed Sep 30 08:43:34 2009 +0100
@@ -151,7 +151,7 @@ static void pit_set_gate(PITState *pit, 
     s->gate = val;
 }
 
-int pit_get_gate(PITState *pit, int channel)
+static int pit_get_gate(PITState *pit, int channel)
 {
     ASSERT(spin_is_locked(&pit->lock));
     return pit->hw.channels[channel].gate;
diff -r bd376919f03a -r c6b22d0d1e90 xen/arch/x86/hvm/io.c
--- a/xen/arch/x86/hvm/io.c     Tue Sep 29 11:28:33 2009 +0100
+++ b/xen/arch/x86/hvm/io.c     Wed Sep 30 08:43:34 2009 +0100
@@ -244,7 +244,7 @@ void hvm_io_assist(void)
         vcpu_end_shutdown_deferral(curr);
 }
 
-void dpci_ioport_read(uint32_t mport, ioreq_t *p)
+static void dpci_ioport_read(uint32_t mport, ioreq_t *p)
 {
     int i, sign = p->df ? -1 : 1;
     uint32_t data = 0;
@@ -274,7 +274,7 @@ void dpci_ioport_read(uint32_t mport, io
     }
 }
 
-void dpci_ioport_write(uint32_t mport, ioreq_t *p)
+static void dpci_ioport_write(uint32_t mport, ioreq_t *p)
 {
     int i, sign = p->df ? -1 : 1;
     uint32_t data;
diff -r bd376919f03a -r c6b22d0d1e90 xen/arch/x86/hvm/vlapic.c
--- a/xen/arch/x86/hvm/vlapic.c Tue Sep 29 11:28:33 2009 +0100
+++ b/xen/arch/x86/hvm/vlapic.c Wed Sep 30 08:43:34 2009 +0100
@@ -146,7 +146,7 @@ static int vlapic_find_highest_isr(struc
     return vlapic_find_highest_vector(&vlapic->regs->data[APIC_ISR]);
 }
 
-uint32_t vlapic_get_ppr(struct vlapic *vlapic)
+static uint32_t vlapic_get_ppr(struct vlapic *vlapic)
 {
     uint32_t tpr, isrv, ppr;
     int isr;
@@ -531,7 +531,7 @@ static int vlapic_read(
     return X86EMUL_OKAY;
 }
 
-void vlapic_pt_cb(struct vcpu *v, void *data)
+static void vlapic_pt_cb(struct vcpu *v, void *data)
 {
     *(s_time_t *)data = hvm_get_guest_time(v);
 }
diff -r bd376919f03a -r c6b22d0d1e90 xen/arch/x86/io_apic.c
--- a/xen/arch/x86/io_apic.c    Tue Sep 29 11:28:33 2009 +0100
+++ b/xen/arch/x86/io_apic.c    Wed Sep 30 08:43:34 2009 +0100
@@ -911,7 +911,7 @@ static inline void UNEXPECTED_IO_APIC(vo
 {
 }
 
-void /*__init*/ __print_IO_APIC(void)
+static void /*__init*/ __print_IO_APIC(void)
 {
     int apic, i;
     union IO_APIC_reg_00 reg_00;
@@ -2105,7 +2105,7 @@ static int ioapic_physbase_to_id(unsigne
 
 unsigned apic_gsi_base(int apic);
 
-int apic_pin_2_gsi_irq(int apic, int pin)
+static int apic_pin_2_gsi_irq(int apic, int pin)
 {
     int idx, irq;
 
diff -r bd376919f03a -r c6b22d0d1e90 xen/arch/x86/ioport_emulate.c
--- a/xen/arch/x86/ioport_emulate.c     Tue Sep 29 11:28:33 2009 +0100
+++ b/xen/arch/x86/ioport_emulate.c     Wed Sep 30 08:43:34 2009 +0100
@@ -42,7 +42,7 @@ static void ioemul_handle_proliant_quirk
     io_emul_stub[9] = 0xc3;
 }
 
-int __init proliant_quirk(struct dmi_system_id *d)
+static int __init proliant_quirk(struct dmi_system_id *d)
 {
     ioemul_handle_quirk = ioemul_handle_proliant_quirk;
     return 0;
@@ -121,7 +121,7 @@ static struct dmi_system_id __initdata i
     { }
 };
 
-int __init ioport_quirks_init(void)
+static int __init ioport_quirks_init(void)
 {
     dmi_check_system(ioport_quirks_tbl);
     return 0;
diff -r bd376919f03a -r c6b22d0d1e90 xen/arch/x86/irq.c
--- a/xen/arch/x86/irq.c        Tue Sep 29 11:28:33 2009 +0100
+++ b/xen/arch/x86/irq.c        Wed Sep 30 08:43:34 2009 +0100
@@ -147,7 +147,7 @@ out:
     return irq;
 }
 
-void dynamic_irq_cleanup(unsigned int irq)
+static void dynamic_irq_cleanup(unsigned int irq)
 {
     struct irq_desc *desc = irq_to_desc(irq);
     unsigned long flags;
diff -r bd376919f03a -r c6b22d0d1e90 xen/arch/x86/mm/hap/guest_walk.c
--- a/xen/arch/x86/mm/hap/guest_walk.c  Tue Sep 29 11:28:33 2009 +0100
+++ b/xen/arch/x86/mm/hap/guest_walk.c  Wed Sep 30 08:43:34 2009 +0100
@@ -24,6 +24,7 @@
 #include <xen/paging.h>
 #include <xen/config.h>
 #include <xen/sched.h>
+#include "private.h" /* for hap_gva_to_gfn_* */
 
 #define _hap_gva_to_gfn(levels) hap_gva_to_gfn_##levels##level
 #define hap_gva_to_gfn(levels) _hap_gva_to_gfn(levels)
diff -r bd376919f03a -r c6b22d0d1e90 xen/arch/x86/mm/hap/hap.c
--- a/xen/arch/x86/mm/hap/hap.c Tue Sep 29 11:28:33 2009 +0100
+++ b/xen/arch/x86/mm/hap/hap.c Wed Sep 30 08:43:34 2009 +0100
@@ -55,7 +55,7 @@
 /*          HAP VRAM TRACKING SUPPORT           */
 /************************************************/
 
-int hap_enable_vram_tracking(struct domain *d)
+static int hap_enable_vram_tracking(struct domain *d)
 {
     int i;
     struct sh_dirty_vram *dirty_vram = d->arch.hvm_domain.dirty_vram;
@@ -76,7 +76,7 @@ int hap_enable_vram_tracking(struct doma
     return 0;
 }
 
-int hap_disable_vram_tracking(struct domain *d)
+static int hap_disable_vram_tracking(struct domain *d)
 {
     int i;
     struct sh_dirty_vram *dirty_vram = d->arch.hvm_domain.dirty_vram;
@@ -96,7 +96,7 @@ int hap_disable_vram_tracking(struct dom
     return 0;
 }
 
-void hap_clean_vram_tracking(struct domain *d)
+static void hap_clean_vram_tracking(struct domain *d)
 {
     int i;
     struct sh_dirty_vram *dirty_vram = d->arch.hvm_domain.dirty_vram;
@@ -111,7 +111,7 @@ void hap_clean_vram_tracking(struct doma
     flush_tlb_mask(&d->domain_dirty_cpumask);
 }
 
-void hap_vram_tracking_init(struct domain *d)
+static void hap_vram_tracking_init(struct domain *d)
 {
     paging_log_dirty_init(d, hap_enable_vram_tracking,
                           hap_disable_vram_tracking,
@@ -192,7 +192,7 @@ param_fail:
 /************************************************/
 
 /* hap code to call when log_dirty is enable. return 0 if no problem found. */
-int hap_enable_log_dirty(struct domain *d)
+static int hap_enable_log_dirty(struct domain *d)
 {
     /* turn on PG_log_dirty bit in paging mode */
     hap_lock(d);
@@ -205,7 +205,7 @@ int hap_enable_log_dirty(struct domain *
     return 0;
 }
 
-int hap_disable_log_dirty(struct domain *d)
+static int hap_disable_log_dirty(struct domain *d)
 {
     hap_lock(d);
     d->arch.paging.mode &= ~PG_log_dirty;
@@ -216,7 +216,7 @@ int hap_disable_log_dirty(struct domain 
     return 0;
 }
 
-void hap_clean_dirty_bitmap(struct domain *d)
+static void hap_clean_dirty_bitmap(struct domain *d)
 {
     /* set l1e entries of P2M table to be read-only. */
     p2m_change_entry_type_global(d, p2m_ram_rw, p2m_ram_logdirty);
@@ -312,7 +312,7 @@ static struct page_info *hap_alloc_p2m_p
     return pg;
 }
 
-void hap_free_p2m_page(struct domain *d, struct page_info *pg)
+static void hap_free_p2m_page(struct domain *d, struct page_info *pg)
 {
     hap_lock(d);
     ASSERT(page_get_owner(pg) == d);
diff -r bd376919f03a -r c6b22d0d1e90 xen/arch/x86/mm/p2m.c
--- a/xen/arch/x86/mm/p2m.c     Tue Sep 29 11:28:33 2009 +0100
+++ b/xen/arch/x86/mm/p2m.c     Wed Sep 30 08:43:34 2009 +0100
@@ -230,7 +230,7 @@ int set_p2m_entry(struct domain *d, unsi
 int set_p2m_entry(struct domain *d, unsigned long gfn, mfn_t mfn, 
                   unsigned int page_order, p2m_type_t p2mt);
 
-int
+static int
 p2m_pod_cache_add(struct domain *d,
                   struct page_info *page,
                   unsigned long order)
diff -r bd376919f03a -r c6b22d0d1e90 xen/arch/x86/mm/paging.c
--- a/xen/arch/x86/mm/paging.c  Tue Sep 29 11:28:33 2009 +0100
+++ b/xen/arch/x86/mm/paging.c  Wed Sep 30 08:43:34 2009 +0100
@@ -626,7 +626,7 @@ void paging_log_dirty_init(struct domain
 }
 
 /* This function fress log dirty bitmap resources. */
-void paging_log_dirty_teardown(struct domain*d)
+static void paging_log_dirty_teardown(struct domain*d)
 {
     log_dirty_lock(d);
     paging_free_log_dirty_bitmap(d);
diff -r bd376919f03a -r c6b22d0d1e90 xen/arch/x86/traps.c
--- a/xen/arch/x86/traps.c      Tue Sep 29 11:28:33 2009 +0100
+++ b/xen/arch/x86/traps.c      Wed Sep 30 08:43:34 2009 +0100
@@ -63,6 +63,7 @@
 #include <asm/x86_emulate.h>
 #include <asm/traps.h>
 #include <asm/hvm/vpt.h>
+#include <asm/hypercall.h>
 #include <public/arch-x86/cpuid.h>
 
 /*
@@ -383,7 +384,7 @@ void vcpu_show_execution_state(struct vc
     vcpu_unpause(v);
 }
 
-char *trapstr(int trapnr)
+static char *trapstr(int trapnr)
 {
     static char *strings[] = { 
         "divide error", "debug", "nmi", "bkpt", "overflow", "bounds", 
@@ -2872,7 +2873,7 @@ static void nmi_dom0_report(unsigned int
     send_guest_trap(d, 0, TRAP_nmi);
 }
 
-asmlinkage void mem_parity_error(struct cpu_user_regs *regs)
+static void mem_parity_error(struct cpu_user_regs *regs)
 {
     switch ( opt_nmi[0] )
     {
@@ -2891,7 +2892,7 @@ asmlinkage void mem_parity_error(struct 
     outb((inb(0x61) & 0x0b) | 0x00, 0x61); /* enable parity check */
 }
 
-asmlinkage void io_check_error(struct cpu_user_regs *regs)
+static void io_check_error(struct cpu_user_regs *regs)
 {
     switch ( opt_nmi[0] )
     {
diff -r bd376919f03a -r c6b22d0d1e90 xen/arch/x86/x86_emulate/x86_emulate.c
--- a/xen/arch/x86/x86_emulate/x86_emulate.c    Tue Sep 29 11:28:33 2009 +0100
+++ b/xen/arch/x86/x86_emulate/x86_emulate.c    Wed Sep 30 08:43:34 2009 +0100
@@ -1183,9 +1183,8 @@ decode_register(
 }
 
 #define decode_segment_failed x86_seg_tr
-enum x86_segment
-decode_segment(
-    uint8_t modrm_reg)
+static enum x86_segment
+decode_segment(uint8_t modrm_reg)
 {
     switch ( modrm_reg )
     {
diff -r bd376919f03a -r c6b22d0d1e90 xen/common/sched_credit.c
--- a/xen/common/sched_credit.c Tue Sep 29 11:28:33 2009 +0100
+++ b/xen/common/sched_credit.c Wed Sep 30 08:43:34 2009 +0100
@@ -211,7 +211,7 @@ __runq_remove(struct csched_vcpu *svc)
     list_del_init(&svc->runq_elem);
 }
 
-void burn_credits(struct csched_vcpu *svc, s_time_t now)
+static void burn_credits(struct csched_vcpu *svc, s_time_t now)
 {
     s_time_t delta;
 
diff -r bd376919f03a -r c6b22d0d1e90 xen/crypto/vmac.c
--- a/xen/crypto/vmac.c Tue Sep 29 11:28:33 2009 +0100
+++ b/xen/crypto/vmac.c Wed Sep 30 08:43:34 2009 +0100
@@ -843,62 +843,6 @@ void vhash_update(unsigned char *m,
 
 /* ----------------------------------------------------------------------- */
 
-uint64_t xvhash(unsigned char m[],
-          unsigned int mbytes,
-          uint64_t *tagl,
-          vmac_ctx_t *ctx)
-{
-    uint64_t ch, cl, rh, rl, *mptr;
-    #if (VMAC_TAG_LEN == 128)
-    uint64_t ch2, cl2, rh2, rl2;
-    #endif
-    const uint64_t *kptr = (uint64_t *)ctx->nhkey;
-    int i, remaining;
-
-    remaining = mbytes % VMAC_NHBYTES;
-    i = mbytes-remaining;
-    mptr = (uint64_t *)(m+i);
-    if (i) vhash_update(m,i,ctx);
-
-    ch = ctx->polytmp[0];
-    cl = ctx->polytmp[1];
-    #if (VMAC_TAG_LEN == 128)
-    ch2 = ctx->polytmp[2];
-    cl2 = ctx->polytmp[3];
-    #endif
-
-    if (remaining) {
-        #if (VMAC_TAG_LEN == 128)
-        nh_16_2(mptr,kptr,2*((remaining+15)/16),rh,rl,rh2,rl2);
-        rh2 &= m62;
-        #else
-        nh_16(mptr,kptr,2*((remaining+15)/16),rh,rl);
-        #endif
-        rh &= m62;
-        if (i) {
-            poly_step(ch,cl,ctx->polykey[0],ctx->polykey[1],rh,rl);
-            #if (VMAC_TAG_LEN == 128)
-            poly_step(ch2,cl2,ctx->polykey[2],ctx->polykey[3],rh2,rl2);
-            #endif
-        } else {
-            ADD128(ch,cl,rh,rl);
-            #if (VMAC_TAG_LEN == 128)
-            ADD128(ch2,cl2,rh2,rl2);
-            #endif
-        }
-    }
-
-    #if VMAC_USE_SSE2
-    _mm_empty(); /* SSE2 version of poly_step uses mmx instructions */
-    #endif
-    vhash_abort(ctx);
-    remaining *= 8;
-#if (VMAC_TAG_LEN == 128)
-    *tagl = l3hash(ch2, cl2, ctx->l3key[2], ctx->l3key[3],remaining);
-#endif
-    return l3hash(ch, cl, ctx->l3key[0], ctx->l3key[1],remaining);
-}
-
 uint64_t vhash(unsigned char m[],
           unsigned int mbytes,
           uint64_t *tagl,
diff -r bd376919f03a -r c6b22d0d1e90 xen/drivers/char/console.c
--- a/xen/drivers/char/console.c        Tue Sep 29 11:28:33 2009 +0100
+++ b/xen/drivers/char/console.c        Wed Sep 30 08:43:34 2009 +0100
@@ -721,16 +721,6 @@ void console_end_sync(void)
     atomic_dec(&print_everything);
 }
 
-void console_putc(char c)
-{
-    serial_putc(sercon_handle, c);
-}
-
-int console_getc(void)
-{
-    return serial_getc(sercon_handle);
-}
-
 /*
  * printk rate limiting, lifted from Linux.
  *
diff -r bd376919f03a -r c6b22d0d1e90 xen/drivers/passthrough/amd/iommu_detect.c
--- a/xen/drivers/passthrough/amd/iommu_detect.c        Tue Sep 29 11:28:33 
2009 +0100
+++ b/xen/drivers/passthrough/amd/iommu_detect.c        Wed Sep 30 08:43:34 
2009 +0100
@@ -69,7 +69,7 @@ static int __init get_iommu_msi_capabili
     return 0;
 }
 
-int __init get_iommu_capabilities(u8 bus, u8 dev, u8 func, u8 cap_ptr,
+static int __init get_iommu_capabilities(u8 bus, u8 dev, u8 func, u8 cap_ptr,
                                   struct amd_iommu *iommu)
 {
     u32 cap_header, cap_range, misc_info;
diff -r bd376919f03a -r c6b22d0d1e90 xen/drivers/passthrough/amd/iommu_init.c
--- a/xen/drivers/passthrough/amd/iommu_init.c  Tue Sep 29 11:28:33 2009 +0100
+++ b/xen/drivers/passthrough/amd/iommu_init.c  Wed Sep 30 08:43:34 2009 +0100
@@ -508,7 +508,7 @@ static int set_iommu_interrupt_handler(s
     return irq;
 }
 
-void enable_iommu(struct amd_iommu *iommu)
+static void enable_iommu(struct amd_iommu *iommu)
 {
     unsigned long flags;
 
@@ -596,7 +596,7 @@ static int __init allocate_event_log(str
     return (allocate_iommu_table_struct(&iommu->event_log, "Event Log"));
 }
 
-int __init amd_iommu_init_one(struct amd_iommu *iommu)
+static int __init amd_iommu_init_one(struct amd_iommu *iommu)
 {
     if ( allocate_cmd_buffer(iommu) != 0 )
         goto error_out;
diff -r bd376919f03a -r c6b22d0d1e90 xen/drivers/passthrough/amd/iommu_map.c
--- a/xen/drivers/passthrough/amd/iommu_map.c   Tue Sep 29 11:28:33 2009 +0100
+++ b/xen/drivers/passthrough/amd/iommu_map.c   Wed Sep 30 08:43:34 2009 +0100
@@ -404,16 +404,6 @@ void invalidate_dev_table_entry(struct a
     send_iommu_command(iommu, cmd);
 }
 
-int amd_iommu_is_dte_page_translation_valid(u32 *entry)
-{
-    return (get_field_from_reg_u32(entry[0],
-                                   IOMMU_DEV_TABLE_VALID_MASK,
-                                   IOMMU_DEV_TABLE_VALID_SHIFT) &&
-            get_field_from_reg_u32(entry[0],
-                                   IOMMU_DEV_TABLE_TRANSLATION_VALID_MASK,
-                                   IOMMU_DEV_TABLE_TRANSLATION_VALID_SHIFT));
-}
-
 static u64 iommu_l2e_from_pfn(struct page_info *table, int level,
                               unsigned long io_pfn)
 {
diff -r bd376919f03a -r c6b22d0d1e90 xen/drivers/passthrough/vtd/intremap.c
--- a/xen/drivers/passthrough/vtd/intremap.c    Tue Sep 29 11:28:33 2009 +0100
+++ b/xen/drivers/passthrough/vtd/intremap.c    Wed Sep 30 08:43:34 2009 +0100
@@ -97,7 +97,7 @@ static int init_apic_pin_2_ir_idx(void)
     return 0;
 }
 
-u16 apicid_to_bdf(int apic_id)
+static u16 apicid_to_bdf(int apic_id)
 {
     struct acpi_drhd_unit *drhd = ioapic_to_drhd(apic_id);
     struct acpi_ioapic_unit *acpi_ioapic_unit;
diff -r bd376919f03a -r c6b22d0d1e90 xen/drivers/passthrough/vtd/iommu.c
--- a/xen/drivers/passthrough/vtd/iommu.c       Tue Sep 29 11:28:33 2009 +0100
+++ b/xen/drivers/passthrough/vtd/iommu.c       Wed Sep 30 08:43:34 2009 +0100
@@ -495,7 +495,7 @@ static int inline iommu_flush_iotlb_psi(
                         flush_non_present_entry, flush_dev_iotlb);
 }
 
-void iommu_flush_all(void)
+static void iommu_flush_all(void)
 {
     struct acpi_drhd_unit *drhd;
     struct iommu *iommu;
@@ -1385,7 +1385,7 @@ void iommu_domain_teardown(struct domain
     iommu_domid_release(d);
 }
 
-int intel_iommu_map_page(
+static int intel_iommu_map_page(
     struct domain *d, unsigned long gfn, unsigned long mfn)
 {
     struct hvm_iommu *hd = domain_hvm_iommu(d);
@@ -1446,7 +1446,7 @@ int intel_iommu_map_page(
     return 0;
 }
 
-int intel_iommu_unmap_page(struct domain *d, unsigned long gfn)
+static int intel_iommu_unmap_page(struct domain *d, unsigned long gfn)
 {
     struct acpi_drhd_unit *drhd;
     struct iommu *iommu;
@@ -1822,7 +1822,7 @@ int device_assigned(u8 bus, u8 devfn)
     return 0;
 }
 
-int intel_iommu_assign_device(struct domain *d, u8 bus, u8 devfn)
+static int intel_iommu_assign_device(struct domain *d, u8 bus, u8 devfn)
 {
     struct acpi_rmrr_unit *rmrr;
     int ret = 0, i;
@@ -1884,7 +1884,7 @@ static int intel_iommu_group_id(u8 bus, 
 }
 
 static u32 iommu_state[MAX_IOMMUS][MAX_IOMMU_REGS];
-void vtd_suspend(void)
+static void vtd_suspend(void)
 {
     struct acpi_drhd_unit *drhd;
     struct iommu *iommu;
@@ -1923,7 +1923,7 @@ void vtd_suspend(void)
     }
 }
 
-void vtd_resume(void)
+static void vtd_resume(void)
 {
     struct acpi_drhd_unit *drhd;
     struct iommu *iommu;
diff -r bd376919f03a -r c6b22d0d1e90 xen/drivers/passthrough/vtd/qinval.c
--- a/xen/drivers/passthrough/vtd/qinval.c      Tue Sep 29 11:28:33 2009 +0100
+++ b/xen/drivers/passthrough/vtd/qinval.c      Wed Sep 30 08:43:34 2009 +0100
@@ -332,7 +332,7 @@ int queue_invalidate_iec(struct iommu *i
     return ret;
 }
 
-int __iommu_flush_iec(struct iommu *iommu, u8 granu, u8 im, u16 iidx)
+static int __iommu_flush_iec(struct iommu *iommu, u8 granu, u8 im, u16 iidx)
 {
     int ret;
     ret = queue_invalidate_iec(iommu, granu, im, iidx);
diff -r bd376919f03a -r c6b22d0d1e90 xen/include/asm-x86/msi.h
--- a/xen/include/asm-x86/msi.h Tue Sep 29 11:28:33 2009 +0100
+++ b/xen/include/asm-x86/msi.h Wed Sep 30 08:43:34 2009 +0100
@@ -225,4 +225,6 @@ struct msg_address {
        __u32   hi_address;
 } __attribute__ ((packed));
 
+void msi_compose_msg(struct pci_dev *pdev, int irq,
+                            struct msi_msg *msg);
 #endif /* __ASM_MSI_H */
diff -r bd376919f03a -r c6b22d0d1e90 xen/include/xen/xenoprof.h
--- a/xen/include/xen/xenoprof.h        Tue Sep 29 11:28:33 2009 +0100
+++ b/xen/include/xen/xenoprof.h        Wed Sep 30 08:43:34 2009 +0100
@@ -64,6 +64,7 @@ struct xenoprof {
 #endif
 
 struct domain;
+int is_passive(struct domain *d);
 void free_xenoprof_pages(struct domain *d);
 
 int do_xenoprof_op(int op, XEN_GUEST_HANDLE(void) arg);

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.