Skip to contentSkip to conversation

iommu/arm-smmu: fix module name for parameters

PATCH New Li Yang 1 participant 1 message Feb 14, 2020 IOMMU

lore
Share & tools
lore

Li Yang

author
#0 lore raw

PATCH 1/1 iommu/arm-smmu: fix module name for parameters

Commit cd221bd24ff5 ("iommu/arm-smmu: Allow building as a module") introduced a side effect that changed the module name from arm-smmu to arm-smmu-mod. This breaks the users of kernel parameters for the driver (e.g. arm-smmu.disable_bypass). This patch changes the module name for parameters back to arm-smmu to be consistent with older kernel.

---
 drivers/iommu/arm-smmu.c | 2 ++
 1 file changed, 2 insertions(+)
drivers/iommu/arm-smmu.c +2 -0
index 16c4b87af42b..8d5a19bfde5c 100644
@@ -58,6 +58,8 @@
 #define MSI_IOVA_BASE			0x8000000
 #define MSI_IOVA_LENGTH			0x100000
 
+#undef MODULE_PARAM_PREFIX
+#define MODULE_PARAM_PREFIX "arm-smmu."
 static int force_stage;
 module_param(force_stage, int, S_IRUGO);
 MODULE_PARM_DESC(force_stage,
Signature · 1 line
2.17.1