These parameters are only referenced by __init routine calls during early
boot so they should be marked as __initdata and __initconst accordingly.
Cc: Christoph Hellwig
Cc: Marek Szyprowski
Cc: Robin Murphy
Cc: Matthew Wilcox
Cc: Christopher Lameter
Cc: Kees Cook
Signed-off-by: Shyam Saini
k Szyprowski
> > Cc: Robin Murphy
> > Cc: Matthew Wilcox
> > Cc: Christopher Lameter
> > Cc: Kees Cook
> > Signed-off-by: Shyam Saini
> > ---
> > kernel/dma/contiguous.c | 8
> > 1 file changed, 4 insertions(+), 4 deletions(-)
>
Hi Nathan,
On Mon, Oct 14, 2019 at 7:55 AM Nathan Chancellor
wrote:
>
> On Sat, Oct 12, 2019 at 05:59:18PM +0530, Shyam Saini wrote:
> > This parameters are not changed after early boot.
> > By making them __ro_after_init will reduce any attack surface in the
> > ker
-off-by: Shyam Saini
---
kernel/dma/contiguous.c | 8
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/kernel/dma/contiguous.c b/kernel/dma/contiguous.c
index 69cfb4345388..1b689b1303cd 100644
--- a/kernel/dma/contiguous.c
+++ b/kernel/dma/contiguous.c
@@ -42,10 +42,10