mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-06-01 03:45:29 +00:00
public:fix "signed/unsigned conversion without cast"
Misra C required signed/unsigned conversion with cast. V1->V2: a.split patch to patch series Signed-off-by: Huihuang Shi <huihuang.shi@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com>
This commit is contained in:
parent
ac7ba6c47f
commit
b3fa2efe56
@ -293,13 +293,13 @@ struct acrn_vm_pci_msix_remap {
|
||||
*
|
||||
*/
|
||||
|
||||
#define SPACE_SYSTEM_MEMORY 0
|
||||
#define SPACE_SYSTEM_IO 1
|
||||
#define SPACE_PCI_CONFIG 2
|
||||
#define SPACE_Embedded_Control 3
|
||||
#define SPACE_SMBUS 4
|
||||
#define SPACE_PLATFORM_COMM 10
|
||||
#define SPACE_FFixedHW 0x7F
|
||||
#define SPACE_SYSTEM_MEMORY 0U
|
||||
#define SPACE_SYSTEM_IO 1U
|
||||
#define SPACE_PCI_CONFIG 2U
|
||||
#define SPACE_Embedded_Control 3U
|
||||
#define SPACE_SMBUS 4U
|
||||
#define SPACE_PLATFORM_COMM 10U
|
||||
#define SPACE_FFixedHW 0x7FU
|
||||
|
||||
struct acpi_generic_address {
|
||||
uint8_t space_id;
|
||||
|
@ -273,13 +273,13 @@ struct acrn_vm_pci_msix_remap {
|
||||
*
|
||||
*/
|
||||
|
||||
#define SPACE_SYSTEM_MEMORY 0
|
||||
#define SPACE_SYSTEM_IO 1
|
||||
#define SPACE_PCI_CONFIG 2
|
||||
#define SPACE_Embedded_Control 3
|
||||
#define SPACE_SMBUS 4
|
||||
#define SPACE_PLATFORM_COMM 10
|
||||
#define SPACE_FFixedHW 0x7F
|
||||
#define SPACE_SYSTEM_MEMORY 0U
|
||||
#define SPACE_SYSTEM_IO 1U
|
||||
#define SPACE_PCI_CONFIG 2U
|
||||
#define SPACE_Embedded_Control 3U
|
||||
#define SPACE_SMBUS 4U
|
||||
#define SPACE_PLATFORM_COMM 10U
|
||||
#define SPACE_FFixedHW 0x7FU
|
||||
|
||||
struct acpi_generic_address {
|
||||
uint8_t space_id;
|
||||
|
Loading…
Reference in New Issue
Block a user