iommu/vt-d: fix a GCC warning
PATCH 1/1 iommu/vt-d: fix a GCC warning
The commit 6ee1b77ba3ac ("iommu/vt-d: Add svm/sva invalidate function") introduced a GCC warning,
drivers/iommu/intel-iommu.c:5330:1: warning: 'static' is not at beginning of declaration [-Wold-style-declaration]
const static int
^~~~~
--- drivers/iommu/intel-iommu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/iommu/intel-iommu.c +1 -1
@@ -5327,7 +5327,7 @@ static void intel_iommu_aux_detach_device(struct iommu_domain *domain,* [IOMMU_CACHE_INV_TYPE_IOTLB][IOMMU_INV_GRANU_ADDR] */ -const static int +static const int inv_type_granu_table[IOMMU_CACHE_INV_TYPE_NR ][IOMMU_INV_GRANU_NR ] = {/* * PASID based IOTLB invalidation: PASID selective (per PASID),
Signature · 1 line
2.17.2 (Apple Git-113)
Hi Qian,
Thanks!
Quoted 9 lines · Qian Cai
The commit
6ee1b77ba3ac("iommu/vt-d: Add svm/sva invalidate function") introduced a GCC warning,
drivers/iommu/intel-iommu.c:5330:1: warning: 'static' is not at beginning of declaration [-Wold-style-declaration]
const static int
^~~~~Signed-off-by Qian Cai <[email protected]>
Best regards,
baolu
Quoted 18 lines
--- drivers/iommu/intel-iommu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/iommu/intel-iommu.c +1
-1@@ -5327,7 +5327,7 @@ static void intel_iommu_aux_detach_device(struct iommu_domain *domain,* [IOMMU_CACHE_INV_TYPE_IOTLB][IOMMU_INV_GRANU_ADDR] */ -const static int +static const int inv_type_granu_table[IOMMU_CACHE_INV_TYPE_NR ][IOMMU_INV_GRANU_NR ] = {/* * PASID based IOTLB invalidation: PASID selective (per PASID),
Joerg Roedel
AppliedQuoted 8 lines · Qian Cai
The commit
6ee1b77ba3ac("iommu/vt-d: Add svm/sva invalidate function") introduced a GCC warning,
drivers/iommu/intel-iommu.c:5330:1: warning: 'static' is not at beginning of declaration [-Wold-style-declaration]
const static int
^~~~~
Quoted 4 lines
Signed-off-by Qian Cai <[email protected]>--- drivers/iommu/intel-iommu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Applied, thanks.