mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2026-01-05 15:45:05 +00:00
HV:fixed "Pointer param should be declared pointer to const"
Pointer param should be declared pointer to const if the parameter is keeped read-only. This patch changes pointer param whose name is vm. Tracked-On:#861 Signed-off-by: Huihuang Shi <huihuang.shi@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com>
This commit is contained in:
committed by
Xie, Nanlin
parent
40dbdcde4f
commit
60b216a460
@@ -119,7 +119,7 @@ release_entry(struct ptdev_remapping_info *entry)
|
||||
|
||||
/* require ptdev_lock protect */
|
||||
static void
|
||||
release_all_entries(struct vm *vm)
|
||||
release_all_entries(const struct vm *vm)
|
||||
{
|
||||
struct ptdev_remapping_info *entry;
|
||||
struct list_head *pos, *tmp;
|
||||
@@ -202,7 +202,7 @@ void ptdev_init(void)
|
||||
register_softirq(SOFTIRQ_PTDEV, ptdev_softirq);
|
||||
}
|
||||
|
||||
void ptdev_release_all_entries(struct vm *vm)
|
||||
void ptdev_release_all_entries(const struct vm *vm)
|
||||
{
|
||||
/* VM already down */
|
||||
spinlock_obtain(&ptdev_lock);
|
||||
|
||||
Reference in New Issue
Block a user