mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-23 09:47:44 +00:00
hv:treewide:fix multiple MISRAC violations
MISRAC has requirements about literal value requires a U suffix and signed/unsigned conversion with cast. This patch is used to solve these violations. v1->v2 *Drop the cast of sz from uint32_t to int32_t, the signed/unsigned violation of nchars will be solved by other patch together with printf/sprintf/console/vuart/uart code. *Delete the unnecessary L suffix of shifting operand. Tracked-On: #861 Signed-off-by: Junjun Shan <junjun.shan@intel.com> Reviewed by: Junjie Mao <junjie.mao@intel.com>
This commit is contained in:
@@ -83,10 +83,10 @@ struct vm_lu_mem_map {
|
||||
|
||||
/* Use # of paging level to identify paging mode */
|
||||
enum vm_paging_mode {
|
||||
PAGING_MODE_0_LEVEL = 0, /* Flat */
|
||||
PAGING_MODE_2_LEVEL = 2, /* 32bit paging, 2-level */
|
||||
PAGING_MODE_3_LEVEL = 3, /* PAE paging, 3-level */
|
||||
PAGING_MODE_4_LEVEL = 4, /* 64bit paging, 4-level */
|
||||
PAGING_MODE_0_LEVEL = 0U, /* Flat */
|
||||
PAGING_MODE_2_LEVEL = 2U, /* 32bit paging, 2-level */
|
||||
PAGING_MODE_3_LEVEL = 3U, /* PAE paging, 3-level */
|
||||
PAGING_MODE_4_LEVEL = 4U, /* 64bit paging, 4-level */
|
||||
PAGING_MODE_NUM,
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user