mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2026-06-08 01:54:44 +00:00
HV: add const qualifier for the deinit vdev op functions
This is to fix the following misra c violation: Pointer param should be declared pointer to const. : vdev Tracked-On: #2534 Signed-off-by: dongshen <dongsheng.x.zhang@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com>
This commit is contained in:
@@ -167,7 +167,7 @@ int32_t vmsi_cfgwrite(struct pci_vdev *vdev, uint32_t offset, uint32_t bytes, ui
|
||||
return ret;
|
||||
}
|
||||
|
||||
int32_t vmsi_deinit(struct pci_vdev *vdev)
|
||||
int32_t vmsi_deinit(const struct pci_vdev *vdev)
|
||||
{
|
||||
if (has_msi_cap(vdev)) {
|
||||
ptirq_remove_msix_remapping(vdev->vpci->vm, vdev->vbdf.value, 1U);
|
||||
|
||||
Reference in New Issue
Block a user