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:
Huihuang Shi 2018-07-03 11:53:19 +08:00 committed by lijinxia
parent ac7ba6c47f
commit b3fa2efe56
2 changed files with 14 additions and 14 deletions

View File

@ -293,13 +293,13 @@ struct acrn_vm_pci_msix_remap {
* *
*/ */
#define SPACE_SYSTEM_MEMORY 0 #define SPACE_SYSTEM_MEMORY 0U
#define SPACE_SYSTEM_IO 1 #define SPACE_SYSTEM_IO 1U
#define SPACE_PCI_CONFIG 2 #define SPACE_PCI_CONFIG 2U
#define SPACE_Embedded_Control 3 #define SPACE_Embedded_Control 3U
#define SPACE_SMBUS 4 #define SPACE_SMBUS 4U
#define SPACE_PLATFORM_COMM 10 #define SPACE_PLATFORM_COMM 10U
#define SPACE_FFixedHW 0x7F #define SPACE_FFixedHW 0x7FU
struct acpi_generic_address { struct acpi_generic_address {
uint8_t space_id; uint8_t space_id;

View File

@ -273,13 +273,13 @@ struct acrn_vm_pci_msix_remap {
* *
*/ */
#define SPACE_SYSTEM_MEMORY 0 #define SPACE_SYSTEM_MEMORY 0U
#define SPACE_SYSTEM_IO 1 #define SPACE_SYSTEM_IO 1U
#define SPACE_PCI_CONFIG 2 #define SPACE_PCI_CONFIG 2U
#define SPACE_Embedded_Control 3 #define SPACE_Embedded_Control 3U
#define SPACE_SMBUS 4 #define SPACE_SMBUS 4U
#define SPACE_PLATFORM_COMM 10 #define SPACE_PLATFORM_COMM 10U
#define SPACE_FFixedHW 0x7F #define SPACE_FFixedHW 0x7FU
struct acpi_generic_address { struct acpi_generic_address {
uint8_t space_id; uint8_t space_id;