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:
Tw 2018-12-20 09:38:34 +08:00 committed by wenlingz
parent 5282fa899d
commit 80b392a854
2 changed files with 2 additions and 2 deletions

View File

@ -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;

View File

@ -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);
/**
* @}