x86: drop "index" parameter from get_free_pirq()
authorJan Beulich <jbeulich@suse.com>
Wed, 5 Sep 2012 13:07:42 +0000 (15:07 +0200)
committerJan Beulich <jbeulich@suse.com>
Wed, 5 Sep 2012 13:07:42 +0000 (15:07 +0200)
It's unused.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Keir Fraser <keir@xen.org>
xen/arch/x86/irq.c
xen/arch/x86/physdev.c
xen/include/asm-x86/irq.h

index f7465e5d1ccf39a3d5855509b0f03980f95770be..c87027bba52659e2088e77ebca86956db16470a6 100644 (file)
@@ -1816,7 +1816,7 @@ static inline bool_t is_free_pirq(const struct domain *d,
         pirq->arch.hvm.emuirq == IRQ_UNBOUND));
 }
 
-int get_free_pirq(struct domain *d, int type, int index)
+int get_free_pirq(struct domain *d, int type)
 {
     int i;
 
index 3aa157f7060d8e0834f679b0f2d062d772052221..a39d6ac6b4ed89b1247d8d6ad834e8ebf5435788 100644 (file)
@@ -71,7 +71,7 @@ static int physdev_hvm_map_pirq(
         else
         {
             if ( *pirq < 0 )
-                *pirq = get_free_pirq(d, type, *index);
+                *pirq = get_free_pirq(d, type);
             ret = map_domain_emuirq_pirq(d, *pirq, *index);
         }
         break;
@@ -187,7 +187,7 @@ int physdev_map_pirq(domid_t domid, int type, int *index, int *pirq_p,
         }
         else
         {
-            pirq = get_free_pirq(d, type, *index);
+            pirq = get_free_pirq(d, type);
             if ( pirq < 0 )
             {
                 dprintk(XENLOG_G_ERR, "dom%d: no free pirq\n", d->domain_id);
@@ -705,7 +705,7 @@ ret_t do_physdev_op(int cmd, XEN_GUEST_HANDLE(void) arg)
             break;
 
         spin_lock(&d->event_lock);
-        ret = get_free_pirq(d, out.type, 0);
+        ret = get_free_pirq(d, out.type);
         if ( ret >= 0 )
         {
             struct pirq *info = pirq_get_info(d, ret);
index ee6cbd5a58d4dfb14236b4f27c020797c55bb1fa..5eefb945a5ea8d14e7271672d8e42a2549bd59fa 100644 (file)
@@ -136,7 +136,7 @@ int pirq_shared(struct domain *d , int irq);
 int map_domain_pirq(struct domain *d, int pirq, int irq, int type,
                            void *data);
 int unmap_domain_pirq(struct domain *d, int pirq);
-int get_free_pirq(struct domain *d, int type, int index);
+int get_free_pirq(struct domain *d, int type);
 void free_domain_pirqs(struct domain *d);
 int map_domain_emuirq_pirq(struct domain *d, int pirq, int irq);
 int unmap_domain_pirq_emuirq(struct domain *d, int pirq);