Patchwork [1/6] ioapic: unexport ioapic_set_irq

login
register
mail settings
Submitter Blue Swirl
Date June 5, 2010, 9:30 p.m.
Message ID <AANLkTik4CYf5R1-QV_S3q8cfavKEeRd9EbFjZfHENftV@mail.gmail.com>
Download mbox | patch
Permalink /patch/54784/
State New
Headers show

Comments

Blue Swirl - June 5, 2010, 9:30 p.m.
There's no need to use ioapic_set_irq() outside of ioapic.c, so
make it static.

Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
---
 hw/apic.h   |    1 -
 hw/ioapic.c |    2 +-
 2 files changed, 1 insertions(+), 2 deletions(-)

Patch

diff --git a/hw/apic.h b/hw/apic.h
index 132fcab..e1954f4 100644
--- a/hw/apic.h
+++ b/hw/apic.h
@@ -11,7 +11,6 @@  int apic_accept_pic_intr(CPUState *env);
 void apic_deliver_pic_intr(CPUState *env, int level);
 int apic_get_interrupt(CPUState *env);
 qemu_irq *ioapic_init(void);
-void ioapic_set_irq(void *opaque, int vector, int level);
 void apic_reset_irq_delivered(void);
 int apic_get_irq_delivered(void);

diff --git a/hw/ioapic.c b/hw/ioapic.c
index 335da6e..e3f8a46 100644
--- a/hw/ioapic.c
+++ b/hw/ioapic.c
@@ -94,7 +94,7 @@  static void ioapic_service(IOAPICState *s)
     }
 }

-void ioapic_set_irq(void *opaque, int vector, int level)
+static void ioapic_set_irq(void *opaque, int vector, int level)
 {
     IOAPICState *s = opaque;