Skip to content

Commit 4b67f1d

Browse files
committed
iommu/arm-smmu: Make private implementation details static
Many of the device-specific implementation details in 'arm-smmu-impl.c' are exposed to other compilation units. Whilst we may require this in the future, let's make it all 'static' for now so that we can expose things on a case-by-case basic. Signed-off-by: Will Deacon <[email protected]>
1 parent ba7e4a0 commit 4b67f1d

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

drivers/iommu/arm-smmu-impl.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ static void arm_smmu_write_ns(struct arm_smmu_device *smmu, int page,
4242
}
4343

4444
/* Since we don't care for sGFAR, we can do without 64-bit accessors */
45-
const struct arm_smmu_impl calxeda_impl = {
45+
static const struct arm_smmu_impl calxeda_impl = {
4646
.read_reg = arm_smmu_read_ns,
4747
.write_reg = arm_smmu_write_ns,
4848
};
@@ -68,7 +68,7 @@ static int cavium_cfg_probe(struct arm_smmu_device *smmu)
6868
return 0;
6969
}
7070

71-
int cavium_init_context(struct arm_smmu_domain *smmu_domain)
71+
static int cavium_init_context(struct arm_smmu_domain *smmu_domain)
7272
{
7373
struct cavium_smmu *cs = container_of(smmu_domain->smmu,
7474
struct cavium_smmu, smmu);
@@ -81,12 +81,12 @@ int cavium_init_context(struct arm_smmu_domain *smmu_domain)
8181
return 0;
8282
}
8383

84-
const struct arm_smmu_impl cavium_impl = {
84+
static const struct arm_smmu_impl cavium_impl = {
8585
.cfg_probe = cavium_cfg_probe,
8686
.init_context = cavium_init_context,
8787
};
8888

89-
struct arm_smmu_device *cavium_smmu_impl_init(struct arm_smmu_device *smmu)
89+
static struct arm_smmu_device *cavium_smmu_impl_init(struct arm_smmu_device *smmu)
9090
{
9191
struct cavium_smmu *cs;
9292

@@ -143,7 +143,7 @@ static int arm_mmu500_reset(struct arm_smmu_device *smmu)
143143
return 0;
144144
}
145145

146-
const struct arm_smmu_impl arm_mmu500_impl = {
146+
static const struct arm_smmu_impl arm_mmu500_impl = {
147147
.reset = arm_mmu500_reset,
148148
};
149149

0 commit comments

Comments
 (0)