diff options
author | Tina Zhang <tina.zhang@intel.com> | 2023-04-13 06:06:39 +0200 |
---|---|---|
committer | Joerg Roedel <jroedel@suse.de> | 2023-04-13 12:05:50 +0200 |
commit | b31064f881eec6047874ef58df4376b20432859c (patch) | |
tree | 47d73eb9ccd9f9febbfb5bdf270c907be9904175 /drivers/iommu/intel/dmar.c | |
parent | iommu/vt-d: Remove PASID supervisor request support (diff) | |
download | linux-b31064f881eec6047874ef58df4376b20432859c.tar.xz linux-b31064f881eec6047874ef58df4376b20432859c.zip |
iommu/vt-d: Make size of operands same in bitwise operations
This addresses the following issue reported by klocwork tool:
- operands of different size in bitwise operations
Suggested-by: Yongwei Ma <yongwei.ma@intel.com>
Signed-off-by: Tina Zhang <tina.zhang@intel.com>
Link: https://lore.kernel.org/r/20230406065944.2773296-2-tina.zhang@intel.com
Signed-off-by: Lu Baolu <baolu.lu@linux.intel.com>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
Diffstat (limited to 'drivers/iommu/intel/dmar.c')
-rw-r--r-- | drivers/iommu/intel/dmar.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/iommu/intel/dmar.c b/drivers/iommu/intel/dmar.c index 6acfe879589c..01d0ca0019f2 100644 --- a/drivers/iommu/intel/dmar.c +++ b/drivers/iommu/intel/dmar.c @@ -1689,7 +1689,7 @@ static void __dmar_enable_qi(struct intel_iommu *iommu) * is present. */ if (ecap_smts(iommu->ecap)) - val |= (1 << 11) | 1; + val |= BIT_ULL(11) | BIT_ULL(0); raw_spin_lock_irqsave(&iommu->register_lock, flags); |