mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-24 02:08:04 +00:00
hv: fix 'Expression is not Boolean'
MISRA-C requires that the controlling expression of an if statement or an iteration-statement shall be Boolean type. v1 -> v2: * update the U suffix of constant to let the type of operands to bit operations (&) is the same. * update the type of 'i' from uint64_t to uint16_t in 'profiling_set_control' since it is limited by phys_cpu_num, which is uint16_t. Tracked-On: #861 Signed-off-by: Shiqing Gao <shiqing.gao@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com>
This commit is contained in:
@@ -40,7 +40,6 @@ union source_id {
|
||||
struct ptdev_msi_info {
|
||||
uint64_t vmsi_addr; /* virt msi_addr */
|
||||
uint32_t vmsi_data; /* virt msi_data */
|
||||
uint16_t vmsi_ctl; /* virt msi_ctl */
|
||||
uint64_t pmsi_addr; /* phys msi_addr */
|
||||
uint32_t pmsi_data; /* phys msi_data */
|
||||
int is_msix; /* 0-MSI, 1-MSIX */
|
||||
|
@@ -120,7 +120,8 @@ struct pci_vdev {
|
||||
|
||||
struct pci_addr_info {
|
||||
union pci_bdf cached_bdf;
|
||||
uint32_t cached_reg, cached_enable;
|
||||
uint32_t cached_reg;
|
||||
bool cached_enable;
|
||||
};
|
||||
|
||||
struct vpci_ops {
|
||||
|
Reference in New Issue
Block a user