mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-01 17:06:51 +00:00
hv: fix MISRA-C violations "Pointer param should be declared pointer to const."
MIRSA-C requires the const qualifier should be applied to pointer parameters that address data not subject to change in rule 120D. Tracked-On #861 Signed-off-by: Zide Chen <zide.chen@intel.com> Acked-by: Anthony Xu <anthony.xu@intel.com>
This commit is contained in:
@@ -547,7 +547,7 @@ int32_t wrmsr_vmexit_handler(struct acrn_vcpu *vcpu)
|
||||
return err;
|
||||
}
|
||||
|
||||
void update_msr_bitmap_x2apic_apicv(struct acrn_vcpu *vcpu)
|
||||
void update_msr_bitmap_x2apic_apicv(const struct acrn_vcpu *vcpu)
|
||||
{
|
||||
uint8_t *msr_bitmap;
|
||||
|
||||
@@ -576,7 +576,7 @@ void update_msr_bitmap_x2apic_apicv(struct acrn_vcpu *vcpu)
|
||||
}
|
||||
}
|
||||
|
||||
void update_msr_bitmap_x2apic_passthru(struct acrn_vcpu *vcpu)
|
||||
void update_msr_bitmap_x2apic_passthru(const struct acrn_vcpu *vcpu)
|
||||
{
|
||||
uint32_t msr;
|
||||
uint8_t *msr_bitmap;
|
||||
|
Reference in New Issue
Block a user