|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [XEN PATCH][for-4.19 v2 2/2] xen/iommu: use ISOLATE_LOW_BIT to wrap a violation of Rule 10.1
No functional change.
Signed-off-by: Nicola Vetrini <nicola.vetrini@xxxxxxxxxxx>
Reviewed-by: Stefano Stabellini <sstabellini@xxxxxxxxxx>
---
Changes in v2:
- Changed macro name
---
xen/drivers/passthrough/iommu.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/xen/drivers/passthrough/iommu.c b/xen/drivers/passthrough/iommu.c
index f9a9f53dbd44..894e4fd2f43b 100644
--- a/xen/drivers/passthrough/iommu.c
+++ b/xen/drivers/passthrough/iommu.c
@@ -560,7 +560,7 @@ int __init iommu_setup(void)
rc = iommu_hardware_setup();
if ( !rc )
ops = iommu_get_ops();
- if ( ops && (ops->page_sizes & -ops->page_sizes) != PAGE_SIZE )
+ if ( ops && (ISOLATE_LOW_BIT(ops->page_sizes)) != PAGE_SIZE )
{
printk(XENLOG_ERR "IOMMU: page size mask %lx unsupported\n",
ops->page_sizes);
--
2.34.1
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |