aboutsummaryrefslogtreecommitdiffstats
path: root/xen/arch
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 /xen/arch
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>
Diffstat (limited to 'xen/arch')
-rw-r--r--xen/arch/x86/irq.c2
-rw-r--r--xen/arch/x86/physdev.c6
2 files changed, 4 insertions, 4 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);