hv:vtd: fix MISRA-C violations on pointer param should be declared pointer to const
This patch fix MISRA-C violations in arch/x86/vtd.c on pointer param should be declared pointer to const. Tracked-On: #861 Signed-off-by: Tw <wei.tan@intel.com> Acked-by: Anthony Xu <anthony.xu@intel.com>
This commit is contained in:
parent
5282fa899d
commit
80b392a854
|
@ -141,7 +141,7 @@ static inline uint8_t* get_ctx_table(uint32_t dmar_index, uint8_t bus_no)
|
|||
return ctx_tables[dmar_index].buses[bus_no].contents;
|
||||
}
|
||||
|
||||
bool iommu_snoop_supported(struct acrn_vm *vm)
|
||||
bool iommu_snoop_supported(const struct acrn_vm *vm)
|
||||
{
|
||||
bool ret;
|
||||
|
||||
|
|
|
@ -622,7 +622,7 @@ void init_iommu_vm0_domain(struct acrn_vm *vm0);
|
|||
* @retval false not support
|
||||
*
|
||||
*/
|
||||
bool iommu_snoop_supported(struct acrn_vm *vm);
|
||||
bool iommu_snoop_supported(const struct acrn_vm *vm);
|
||||
|
||||
/**
|
||||
* @}
|
||||
|
|
Loading…
Reference in New Issue