提交 9305d02a 编写于 作者: B Barry Song 提交者: Will Deacon

iommu/arm-smmu-v3: replace module_param_named by module_param for disable_bypass

Just use module_param() - going out of the way to specify a "different"
name that's identical to the variable name is silly.
Signed-off-by: NBarry Song <song.bao.hua@hisilicon.com>
Reviewed-by: NRobin Murphy <robin.murphy@arm.com>
Link: https://lore.kernel.org/r/20200827092957.22500-3-song.bao.hua@hisilicon.comSigned-off-by: NWill Deacon <will@kernel.org>
上级 fea9ae18
......@@ -414,7 +414,7 @@
#define MSI_IOVA_LENGTH 0x100000
static bool disable_bypass = 1;
module_param_named(disable_bypass, disable_bypass, bool, 0444);
module_param(disable_bypass, bool, 0444);
MODULE_PARM_DESC(disable_bypass,
"Disable bypass streams such that incoming transactions from devices that are not attached to an iommu domain will report an abort back to the device and will not be allowed to pass through the SMMU.");
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册