From: Baoquan He Date: Thu, 15 Sep 2016 08:50:51 +0000 (+0800) Subject: iommu/amd: Use standard bitmap operation to set bitmap X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=5c87f62dd1ea9dab8101a020fa2c6ab47c37797e;p=linux.git iommu/amd: Use standard bitmap operation to set bitmap It will be more readable and safer than the old setting. Signed-off-by: Baoquan He Signed-off-by: Joerg Roedel --- diff --git a/drivers/iommu/amd_iommu_init.c b/drivers/iommu/amd_iommu_init.c index cd1713631a4ad..157e93421fb81 100644 --- a/drivers/iommu/amd_iommu_init.c +++ b/drivers/iommu/amd_iommu_init.c @@ -20,6 +20,7 @@ #include #include #include +#include #include #include #include @@ -2285,7 +2286,7 @@ static int __init early_amd_iommu_init(void) * never allocate domain 0 because its used as the non-allocated and * error value placeholder */ - amd_iommu_pd_alloc_bitmap[0] = 1; + __set_bit(0, amd_iommu_pd_alloc_bitmap); spin_lock_init(&amd_iommu_pd_lock);