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
@@ -9,7 +9,7 @@
|
||||
|
||||
void vm_setup_cpu_state(struct vm *vm);
|
||||
int vm_load_pm_s_state(struct vm *vm);
|
||||
int validate_pstate(struct vm *vm, uint64_t perf_ctl);
|
||||
int validate_pstate(const struct vm *vm, uint64_t perf_ctl);
|
||||
void register_pm1ab_handler(struct vm *vm);
|
||||
|
||||
#endif /* PM_H */
|
||||
|
||||
@@ -57,7 +57,7 @@ void vioapic_set_irq(struct vm *vm, uint32_t irq, uint32_t operation);
|
||||
void vioapic_set_irq_nolock(struct vm *vm, uint32_t irq, uint32_t operation);
|
||||
void vioapic_update_tmr(struct vcpu *vcpu);
|
||||
|
||||
uint32_t vioapic_pincount(struct vm *vm);
|
||||
uint32_t vioapic_pincount(const struct vm *vm);
|
||||
void vioapic_process_eoi(struct vm *vm, uint32_t vector);
|
||||
void vioapic_get_rte(struct vm *vm, uint32_t pin, union ioapic_rte *rte);
|
||||
int vioapic_mmio_access_handler(struct vcpu *vcpu,
|
||||
|
||||
@@ -194,7 +194,7 @@ struct vm_description {
|
||||
#endif
|
||||
};
|
||||
|
||||
static inline bool is_vm0(struct vm *vm)
|
||||
static inline bool is_vm0(const struct vm *vm)
|
||||
{
|
||||
return (vm->vm_id) == 0U;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user