mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-16 22:39:29 +00:00
HV: fix misra violation on platform clos array
MISRA C requires specified bounds for arrays declaration, previous declaration of platform_clos_array in board.h does not meet the requirement. Tracked-On: #3987 Signed-off-by: Victor Sun <victor.sun@intel.com>
This commit is contained in:
@@ -13,6 +13,5 @@
|
||||
#endif
|
||||
|
||||
struct dmar_info plat_dmar_info;
|
||||
struct platform_clos_info platform_clos_array[0];
|
||||
uint16_t platform_clos_num = 0;
|
||||
struct platform_clos_info platform_clos_array[MAX_PLATFORM_CLOS_NUM];
|
||||
const struct cpu_state_table board_cpu_state_tbl;
|
||||
|
@@ -8,6 +8,8 @@
|
||||
#define MISC_CFG_H
|
||||
|
||||
#define CONFIG_MAX_PCPU_NUM 4U
|
||||
#define MAX_PLATFORM_CLOS_NUM 0U
|
||||
|
||||
#define ROOTFS_0 "root=/dev/sda3 "
|
||||
|
||||
#define SOS_ROOTFS ROOTFS_0
|
||||
|
Reference in New Issue
Block a user