Skip to content

Commit 7809c4d

Browse files
Qian Caijoergroedel
authored andcommitted
iommu/vt-d: fix a GCC warning
The commit 6ee1b77 ("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 ^~~~~ Fixes: 6ee1b77 ("iommu/vt-d: Add svm/sva invalidate function") Signed-off-by: Qian Cai <[email protected]> Acked-by: Lu Baolu <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Joerg Roedel <[email protected]>
1 parent bfe6240 commit 7809c4d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/iommu/intel-iommu.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5327,7 +5327,7 @@ static void intel_iommu_aux_detach_device(struct iommu_domain *domain,
53275327
* [IOMMU_CACHE_INV_TYPE_IOTLB][IOMMU_INV_GRANU_ADDR]
53285328
*/
53295329

5330-
const static int
5330+
static const int
53315331
inv_type_granu_table[IOMMU_CACHE_INV_TYPE_NR][IOMMU_INV_GRANU_NR] = {
53325332
/*
53335333
* PASID based IOTLB invalidation: PASID selective (per PASID),

0 commit comments

Comments
 (0)