mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-04 18:30:18 +00:00
HV: remove unused API lookp_entry_by_id()
Signed-off-by: Li Zhijian <lizhijian@cn.fujitsu.com>
This commit is contained in:
@@ -68,17 +68,6 @@ _lookup_entry_by_id(uint32_t id)
|
|||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline struct ptdev_remapping_info *
|
|
||||||
lookp_entry_by_id(uint32_t id)
|
|
||||||
{
|
|
||||||
struct ptdev_remapping_info *entry;
|
|
||||||
|
|
||||||
spinlock_obtain(&ptdev_lock);
|
|
||||||
entry = _lookup_entry_by_id(id);
|
|
||||||
spinlock_release(&ptdev_lock);
|
|
||||||
return entry;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* require ptdev_lock protect */
|
/* require ptdev_lock protect */
|
||||||
static inline struct ptdev_remapping_info *
|
static inline struct ptdev_remapping_info *
|
||||||
_lookup_entry_by_vmsi(struct vm *vm, uint16_t vbdf, int32_t index)
|
_lookup_entry_by_vmsi(struct vm *vm, uint16_t vbdf, int32_t index)
|
||||||
|
Reference in New Issue
Block a user