[PATCH] iommu: tegra-smmu: Fix spacing around operators

Owens James posted 1 patch 1 month ago
drivers/iommu/tegra-smmu.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
[PATCH] iommu: tegra-smmu: Fix spacing around operators
Posted by Owens James 1 month ago
From 976ec7e6ca46a3f9f6031b74e2e88f630ae709c2 Mon Sep 17 00:00:00 2001
From: "haoyu.lu" <hechushiguitu666@gmail.com>
Date: Fri, 6 Mar 2026 11:36:52 +0800
Subject: [PATCH] iommu: tegra-smmu: Fix spacing around operators

Fix checkpatch.pl warning for missing space around operator:
- SMMU_SIZE_PT-1 -> SMMU_SIZE_PT - 1

Signed-off-by: haoyu.lu <hechushiguitu666@gmail.com>
---
 drivers/iommu/tegra-smmu.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/iommu/tegra-smmu.c b/drivers/iommu/tegra-smmu.c
index 67e7a7b925f0..58ccaa74475b 100644
--- a/drivers/iommu/tegra-smmu.c
+++ b/drivers/iommu/tegra-smmu.c
@@ -137,7 +137,7 @@ static inline u32 smmu_readl(struct tegra_smmu
*smmu, unsigned long offset)
 #define SMMU_PDE_SHIFT 22
 #define SMMU_PTE_SHIFT 12

-#define SMMU_PAGE_MASK (~(SMMU_SIZE_PT-1))
+#define SMMU_PAGE_MASK (~(SMMU_SIZE_PT - 1))
 #define SMMU_OFFSET_IN_PAGE(x) ((unsigned long)(x) & ~SMMU_PAGE_MASK)
 #define SMMU_PFN_PHYS(x) ((phys_addr_t)(x) << SMMU_PTE_SHIFT)
 #define SMMU_PHYS_PFN(x) ((unsigned long)((x) >> SMMU_PTE_SHIFT))
-- 
2.53.0.windows.1