mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-06-18 19:57:31 +00:00
HV: remove unused API lookp_entry_by_id()
Signed-off-by: Li Zhijian <lizhijian@cn.fujitsu.com>
This commit is contained in:
parent
0e49f85a25
commit
de31cf4f5f
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user