aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJan Beulich <jbeulich@suse.com>2012-09-05 15:07:42 +0200
committerJan Beulich <jbeulich@suse.com>2012-09-05 15:07:42 +0200
commit4f8b1ea9753add5fced5024c6bded2eb30c69916 (patch)
treeb1f6aaafc94a46fcd1933e75116d101b54dea288
parent6e2d8c9a0d7a9f409e863872346e7a5c9620531b (diff)
downloadxen-4f8b1ea9753add5fced5024c6bded2eb30c69916.tar.gz
xen-4f8b1ea9753add5fced5024c6bded2eb30c69916.tar.bz2
xen-4f8b1ea9753add5fced5024c6bded2eb30c69916.zip
x86: drop "index" parameter from get_free_pirq()
It's unused. Signed-off-by: Jan Beulich <jbeulich@suse.com> Acked-by: Keir Fraser <keir@xen.org>
-rw-r--r--xen/arch/x86/irq.c2
-rw-r--r--xen/arch/x86/physdev.c6
-rw-r--r--xen/include/asm-x86/irq.h2
3 files changed, 5 insertions, 5 deletions
diff --git a/xen/arch/x86/irq.c b/xen/arch/x86/irq.c
index f7465e5d1c..c87027bba5 100644
--- a/xen/arch/x86/irq.c
+++ b/xen/arch/x86/irq.c
@@ -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;
diff --git a/xen/arch/x86/physdev.c b/xen/arch/x86/physdev.c
index 3aa157f706..a39d6ac6b4 100644
--- a/xen/arch/x86/physdev.c
+++ b/xen/arch/x86/physdev.c
@@ -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);
diff --git a/xen/include/asm-x86/irq.h b/xen/include/asm-x86/irq.h
index ee6cbd5a58..5eefb945a5 100644
--- a/xen/include/asm-x86/irq.h
+++ b/xen/include/asm-x86/irq.h
@@ -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);