You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Revert "iommu/arm-smmu: Make arm-smmu explicitly non-modular"
This reverts commit addb672.
Let's get the SMMU driver building as a module, which means putting
back some dead code that we used to carry.
Signed-off-by: Will Deacon <will@kernel.org>
Tested-by: John Garry <john.garry@huawei.com> # smmu v3
Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
Copy file name to clipboardExpand all lines: drivers/iommu/arm-smmu.c
+19-13Lines changed: 19 additions & 13 deletions
Original file line number
Diff line number
Diff line change
@@ -27,8 +27,7 @@
27
27
#include<linux/interrupt.h>
28
28
#include<linux/io.h>
29
29
#include<linux/iopoll.h>
30
-
#include<linux/init.h>
31
-
#include<linux/moduleparam.h>
30
+
#include<linux/module.h>
32
31
#include<linux/of.h>
33
32
#include<linux/of_address.h>
34
33
#include<linux/of_device.h>
@@ -60,10 +59,6 @@
60
59
#defineMSI_IOVA_LENGTH 0x100000
61
60
62
61
staticintforce_stage;
63
-
/*
64
-
* not really modular, but the easiest way to keep compat with existing
65
-
* bootargs behaviour is to continue using module_param() here.
66
-
*/
67
62
module_param(force_stage, int, S_IRUGO);
68
63
MODULE_PARM_DESC(force_stage,
69
64
"Force SMMU mappings to be installed at a particular stage of translation. A value of '1' or '2' forces the corresponding stage. All other values are ignored (i.e. no stage is forced). Note that selecting a specific stage will disable support for nested translation.");
0 commit comments