HV:INSTR_EMUL:Rename struct vie, vie_op, and emul_ctxt

For data struct type struct vie, emul_ctxt, its name
is identical with variable name in the same scope.
This MISRA C violation is detected by static analysis
tool.
According to 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.
Follow the same rule, data structure name "vie_op" needs
to be renamed;

The following updates are made in this patch:
struct vie-->struct instr_emul_vie
struct vie_op-->struct instr_emul_vie_op
struct emul_ctxt-->struct instr_emul_ctxt

Signed-off-by: Xiangyang Wu <xiangyang.wu@linux.intel.com>
Acked-by: Eddie Dong <eddie.dong@intel.com>
This commit is contained in:
Xiangyang Wu
2018-07-27 15:29:45 +08:00
committed by lijinxia
parent 3446e84ea5
commit 8205c9a482
5 changed files with 46 additions and 46 deletions

View File

@@ -35,7 +35,7 @@ struct per_cpu_region {
#endif
struct per_cpu_timers cpu_timers;
struct sched_context sched_ctx;
struct emul_ctxt g_inst_ctxt;
struct instr_emul_ctxt g_inst_ctxt;
struct host_gdt gdt;
struct tss_64 tss;
enum cpu_state cpu_state;