mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2026-01-04 23:24:56 +00:00
HV:treewide:rename struct key_info, pir_desc, map_params
For data structure types "struct key_info, struct pir_desc, struct map_params", its name is identical with variable name in the same scope. This MISRA C violation is detected by static analysis tool. 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. The following udpates are made: struct key_info-->struct trusty_key_info struct pir_desc-->struct vlapic_pir_desc struct map_params-->struct mem_map_params Signed-off-by: Xiangyang Wu <xiangyang.wu@linux.intel.com> Reviewed-by: Junjie Mao <junjie.mao@intel.com>
This commit is contained in:
@@ -375,7 +375,7 @@ void bsp_boot_init(void)
|
||||
* is matching the actual offset!
|
||||
*/
|
||||
ASSERT((sizeof(struct trusty_startup_param)
|
||||
+ sizeof(struct key_info)) < 0x1000U,
|
||||
+ sizeof(struct trusty_key_info)) < 0x1000U,
|
||||
"trusty_startup_param + key_info > 1Page size(4KB)!");
|
||||
|
||||
ASSERT(NR_WORLD == 2, "Only 2 Worlds supported!");
|
||||
|
||||
Reference in New Issue
Block a user