Skip to content

Commit 33fdfd0

Browse files
Xiangyang Wulijinxia
authored andcommitted
HV:treewide:rename struct vlapic as struct acrn_vlapic
There are many naming violations detected by static analysis tool. Data structure type name is the same as variable name. According to naming convention rules, If the data structure type is used by multi modules and its name meaning is simplistic (such as vcpu, vm), its name needs prefix "acrn_". Rename struct vlapic as struct acrn_vlapic Replace regular expression:s/struct vlapic\([ ),;\t\*]\+\)/struct acrn_vlapic\1 Signed-off-by: Xiangyang Wu <xiangyang.wu@linux.intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com>
1 parent 9ea50a5 commit 33fdfd0

File tree

7 files changed

+114
-114
lines changed

7 files changed

+114
-114
lines changed

hypervisor/arch/x86/guest/vcpu.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ void destroy_vcpu(struct vcpu *vcpu)
263263
*/
264264
void reset_vcpu(struct vcpu *vcpu)
265265
{
266-
struct vlapic *vlapic;
266+
struct acrn_vlapic *vlapic;
267267

268268
pr_dbg("vcpu%hu reset", vcpu->vcpu_id);
269269
ASSERT(vcpu->state != VCPU_RUNNING,

hypervisor/arch/x86/guest/vioapic.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ void
199199
vioapic_update_tmr(struct vcpu *vcpu)
200200
{
201201
struct vioapic *vioapic;
202-
struct vlapic *vlapic;
202+
struct acrn_vlapic *vlapic;
203203
union ioapic_rte rte;
204204
uint32_t vector, delmode;
205205
bool level;

0 commit comments

Comments
 (0)