diff options
author | Parav Pandit <[email protected]> | 2021-06-10 10:01:14 +0800 |
---|---|---|
committer | Joerg Roedel <[email protected]> | 2021-06-10 09:06:14 +0200 |
commit | 9739ba327c01e26f672661ea751132c29a54d3d9 (patch) | |
tree | b967b5885cbec964b920f513293497ad85188269 | |
parent | cee57d4fe74e82e784f6566bad3e3bb1ca51a211 (diff) |
iommu/vt-d: Define counter explicitly as unsigned int
Avoid below checkpatch warning.
WARNING: Prefer 'unsigned int' to bare use of 'unsigned'
+ unsigned iommu_refcnt[DMAR_UNITS_SUPPORTED];
Fixes: 29a27719abaa ("iommu/vt-d: Replace iommu_bmp with a refcount")
Signed-off-by: Parav Pandit <[email protected]>
Signed-off-by: Lu Baolu <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Joerg Roedel <[email protected]>
-rw-r--r-- | include/linux/intel-iommu.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/intel-iommu.h b/include/linux/intel-iommu.h index 574b932dfe86..d0fa0b31994d 100644 --- a/include/linux/intel-iommu.h +++ b/include/linux/intel-iommu.h @@ -537,7 +537,7 @@ struct context_entry { struct dmar_domain { int nid; /* node id */ - unsigned iommu_refcnt[DMAR_UNITS_SUPPORTED]; + unsigned int iommu_refcnt[DMAR_UNITS_SUPPORTED]; /* Refcount of devices per iommu */ |