mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 02:01:24 +01:00
evtchn: build fix for Arm
When backportingdaa90dfea9("pirq_cleanup_check() leaks") I neglected to pay attention to it depending on13a7b0f9f7("restrict concept of pIRQ to x86"). That one doesn't want backporting imo, so use / adjust custom #ifdef-ary to address the immediate issue of pirq_cleanup_check() not being available on Arm. Signed-off-by: Jan Beulich <jbeulich@suse.com>
This commit is contained in:
1 parent
b61a4baf35
commit
43d5f8f079
1 file changed
+3
-1
@@ -618,7 +618,9 @@ static int evtchn_bind_pirq(evtchn_bind_pirq_t *bind)
|
||||
if ( rc != 0 )
|
||||
{
|
||||
info->evtchn = 0;
|
||||
#ifdef CONFIG_X86
|
||||
pirq_cleanup_check(info, d);
|
||||
#endif
|
||||
goto out;
|
||||
}
|
||||
|
||||
@@ -688,8 +690,8 @@ int evtchn_close(struct domain *d1, int port1, bool guest)
|
||||
* The successful path of unmap_domain_pirq_emuirq() will have
|
||||
* called pirq_cleanup_check() already.
|
||||
*/
|
||||
#endif
|
||||
pirq_cleanup_check(pirq, d1);
|
||||
#endif
|
||||
}
|
||||
unlink_pirq_port(chn1, d1->vcpu[chn1->notify_vcpu_id]);
|
||||
break;
|
||||
|
||||