mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2026-06-06 09:06:30 +00:00
HV: fix violations touched type conversion
ACRN Coding guidelines requires type conversion shall be explicity. Tracked-On: #861 Signed-off-by: Huihuang Shi <huihuang.shi@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com>
This commit is contained in:
@@ -105,10 +105,10 @@ int32_t mptable_build(struct acrn_vm *vm)
|
||||
(const void *)&mptable_template, sizeof(struct mptable_info));
|
||||
|
||||
mptable->mpch.entry_count = vcpu_num + MPE_NUM_BUSES + MPEII_NUM_LOCAL_IRQ;
|
||||
mptable->mpch.base_table_length = sizeof(struct mpcth)
|
||||
+ vcpu_num * sizeof(struct proc_entry)
|
||||
+ MPE_NUM_BUSES * sizeof(struct bus_entry)
|
||||
+ MPEII_NUM_LOCAL_IRQ * sizeof(struct int_entry);
|
||||
mptable->mpch.base_table_length = (uint16_t)sizeof(struct mpcth)
|
||||
+ vcpu_num * (uint16_t)sizeof(struct proc_entry)
|
||||
+ MPE_NUM_BUSES * (uint16_t)sizeof(struct bus_entry)
|
||||
+ MPEII_NUM_LOCAL_IRQ * (uint16_t)sizeof(struct int_entry);
|
||||
|
||||
mptable_length = sizeof(struct mpfps) + mptable->mpch.base_table_length;
|
||||
if (mptable_length <= MPTABLE_MAX_LENGTH) {
|
||||
|
||||
Reference in New Issue
Block a user