HV:misc:fix "signed/unsigned conversion without cast"

Misra C required signed/unsigned conversion with cast.

V1->V2:
  a.split patch to patch series

V2->V3:
  a.change the uint64_t type numeric constant's suffix from U to UL

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 18:40:23 +08:00
committed by lijinxia
parent 95736e659f
commit 2ffa69cb9a
9 changed files with 89 additions and 89 deletions

View File

@@ -26,10 +26,10 @@ static struct dmar_dev_scope default_drhd_unit_dev_scope0[] = {
static struct dmar_drhd drhd_info_array[] = {
{
.dev_cnt = 1,
.segment = 0,
.flags = 0,
.reg_base_addr = 0xFED64000,
.dev_cnt = 1U,
.segment = 0U,
.flags = 0U,
.reg_base_addr = 0xFED64000UL,
/* Ignore the iommu for intel graphic device since GVT-g needs
* vtd disabled for gpu
*/
@@ -40,10 +40,10 @@ static struct dmar_drhd drhd_info_array[] = {
/* No need to specify devices since
* DRHD_FLAG_INCLUDE_PCI_ALL_MASK set
*/
.dev_cnt = 0,
.segment = 0,
.dev_cnt = 0U,
.segment = 0U,
.flags = DRHD_FLAG_INCLUDE_PCI_ALL_MASK,
.reg_base_addr = 0xFED65000,
.reg_base_addr = 0xFED65000UL,
.ignore = false,
.devices = NULL,
},