mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
pci: vfio: Make get_irq_info() return a non-reference
Returning a reference is not possible for the vfio-user code as it is constructed for the function. Signed-off-by: Rob Bradford <robert.bradford@intel.com>
This commit is contained in:
committed by
Sebastien Boeuf
parent
1997152ee1
commit
51ceae9131
+3
-3
@@ -301,7 +301,7 @@ pub(crate) trait Vfio {
|
|||||||
unimplemented!()
|
unimplemented!()
|
||||||
}
|
}
|
||||||
|
|
||||||
fn get_irq_info(&self, _irq_index: u32) -> Option<&VfioIrq> {
|
fn get_irq_info(&self, _irq_index: u32) -> Option<VfioIrq> {
|
||||||
unimplemented!()
|
unimplemented!()
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -341,8 +341,8 @@ impl Vfio for VfioDeviceWrapper {
|
|||||||
self.device.region_write(index, data, offset)
|
self.device.region_write(index, data, offset)
|
||||||
}
|
}
|
||||||
|
|
||||||
fn get_irq_info(&self, irq_index: u32) -> Option<&VfioIrq> {
|
fn get_irq_info(&self, irq_index: u32) -> Option<VfioIrq> {
|
||||||
self.device.get_irq_info(irq_index)
|
self.device.get_irq_info(irq_index).copied()
|
||||||
}
|
}
|
||||||
|
|
||||||
fn enable_irq(
|
fn enable_irq(
|
||||||
|
|||||||
Reference in New Issue
Block a user