HV:vtd:cap change the macro to the inline function

Function like macro changed to be inline function to limit
the return type and parameter type.

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-17 10:37:23 +08:00
committed by lijinxia
parent 69ebf4c6e6
commit d8c376503f
2 changed files with 202 additions and 46 deletions

View File

@@ -754,7 +754,7 @@ static void fault_record_analysis(__unused uint64_t low, uint64_t high)
DMA_FRCD_UP_SID(high) & 0x7UL,
low);
#if DBG_IOMMU
if (iommu_ecap_dt(dmar_uint->ecap)) {
if (iommu_ecap_dt(dmar_uint->ecap)i != 0U) {
pr_info("Address Type: 0x%x",
DMA_FRCD_UP_AT(high));
}