mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-21 00:38:28 +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:
@@ -198,7 +198,7 @@ union ioapic_rte {
|
||||
uint32_t hi_32;
|
||||
} u;
|
||||
struct {
|
||||
uint64_t vector:8;
|
||||
uint8_t vector:8;
|
||||
uint64_t delivery_mode:3;
|
||||
uint64_t dest_mode:1;
|
||||
uint64_t delivery_status:1;
|
||||
@@ -207,7 +207,7 @@ union ioapic_rte {
|
||||
uint64_t trigger_mode:1;
|
||||
uint64_t intr_mask:1;
|
||||
uint64_t rsvd_1:39;
|
||||
uint64_t dest_field:8;
|
||||
uint8_t dest_field:8;
|
||||
} bits __packed;
|
||||
struct {
|
||||
uint32_t vector:8;
|
||||
|
@@ -82,7 +82,7 @@
|
||||
|
||||
/* MP Floating Pointer Structure */
|
||||
struct mpfps {
|
||||
uint8_t signature[4];
|
||||
char signature[4];
|
||||
uint32_t pap;
|
||||
uint8_t length;
|
||||
uint8_t spec_rev;
|
||||
@@ -96,12 +96,12 @@ struct mpfps {
|
||||
|
||||
/* MP Configuration Table Header */
|
||||
struct mpcth {
|
||||
uint8_t signature[4];
|
||||
char signature[4];
|
||||
uint16_t base_table_length;
|
||||
uint8_t spec_rev;
|
||||
uint8_t checksum;
|
||||
uint8_t oem_id[8];
|
||||
uint8_t product_id[12];
|
||||
char oem_id[8];
|
||||
char product_id[12];
|
||||
uint32_t oem_table_pointer;
|
||||
uint16_t oem_table_size;
|
||||
uint16_t entry_count;
|
||||
@@ -125,7 +125,7 @@ struct proc_entry {
|
||||
struct bus_entry {
|
||||
uint8_t type;
|
||||
uint8_t bus_id;
|
||||
uint8_t bus_type[6];
|
||||
char bus_type[6];
|
||||
} __packed;
|
||||
|
||||
struct int_entry {
|
||||
|
Reference in New Issue
Block a user