mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-23 17:58:30 +00:00
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>
This commit is contained in:
@@ -135,7 +135,7 @@ struct vm {
|
||||
void *vuart; /* Virtual UART */
|
||||
struct acrn_vpic *vpic; /* Virtual PIC */
|
||||
enum vpic_wire_mode vpic_wire_mode;
|
||||
struct iommu_domain *iommu_domain; /* iommu domain of this VM */
|
||||
struct iommu_domain *iommu; /* iommu domain of this VM */
|
||||
struct list_head list; /* list of VM */
|
||||
spinlock_t spinlock; /* Spin-lock used to protect VM modifications */
|
||||
|
||||
|
Reference in New Issue
Block a user