Skip to content

Commit 2c95a8c

Browse files
Xiangyang Wulijinxia
authored andcommitted
HV:treewide:rename struct pic and iommu_domain
For data structure types "struct pic and struct iommu_domain", its name is identical with variable name in the same scope. This MISRA C violation is detected. Naming convention rule:If the data structure type is used by only one module and its name meaning is simplistic, its name needs prefix shorten module name. Naming convention rule:Variable name can be shortened from its data structure type name. The following udpates are made: struct pic pic-->struct i8259_reg_state i8259 struct iommu_domain iommu_domain-->struct iommu_domain iommu V1-->V2: Update "struct iommu_domain iommu_domain-->struct iommu_domain iommu" Signed-off-by: Xiangyang Wu <xiangyang.wu@linux.intel.com> Reviewed-by: Junjie Mao <junjie.mao@intel.com>
1 parent 17771c0 commit 2c95a8c

File tree

4 files changed

+162
-162
lines changed

4 files changed

+162
-162
lines changed

hypervisor/arch/x86/guest/vm.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -268,9 +268,9 @@ int shutdown_vm(struct vm *vm)
268268
/* TODO: De-initialize I/O Emulation */
269269
free_io_emulation_resource(vm);
270270

271-
/* Free iommu_domain */
272-
if (vm->iommu_domain != NULL) {
273-
destroy_iommu_domain(vm->iommu_domain);
271+
/* Free iommu */
272+
if (vm->iommu != NULL) {
273+
destroy_iommu_domain(vm->iommu);
274274
}
275275

276276
bitmap_clear_lock(vm->attr.id, &vmid_bitmap);

0 commit comments

Comments
 (0)